|
The Vish Visualization Shell 0.3
Vish
|
A Context is always local and unique for each call. More...
#include <ocean/plankton/VContext.hpp>
Classes | |
| struct | Addendum |
| Container for additional data specific for this Context. More... | |
| struct | RealTime |
| struct | TimeInterface |
Public Member Functions | |
| operator const RefPtr< ValuePool > & () const | |
| A VContext may be implicitely converted into a reference pointer to a ValuePool. | |
| template<typename... SlotList> | |
| auto | operator() (SlotList... t) const -> decltype(evaluateSlots(GhostValues, t...)) |
| Evaluate a set of input slots at once, return the values as a std::tuple<> according to the slot values. | |
| string | PoolName () const |
| Return the name of the associated value pool. | |
| void | setTime () |
| set the time according to the current system time | |
| VContext (const RefPtr< Addendum > &CAddendum=NullPtr()) | |
| Constructor. | |
| VContext (const RefPtr< ValuePool > &myValuePool, const RefPtr< Addendum > &CAddendum=NullPtr()) | |
| Constructor with ValuePool. | |
| VContext (const RefPtr< ValuePoolProvider > &myValuePoolProvider) | |
| Context constructor, taking optional parameter ValuePoolProvider to setup the GhostValues in this context. | |
| virtual | ~VContext () |
| Destructor. | |
Public Attributes | |
| RefPtr< Addendum > | ContextAddendum |
| An optional addendum to this context. | |
| RefPtr< ValuePool > | GhostValues |
| Eventually, some variables of an input are contained in a value pool; if so, then they are semantically local to a certain context (or a group of context's). | |
| double | precision |
| The precision parameter tells with what precision a certain action is to be executed. | |
A Context is always local and unique for each call.
However, it may refer to a ValuePool which is persistent through many VContext objects, or which may also be shared among various VContext objects.
| Wizt::VContext::VContext | ( | const RefPtr< ValuePoolProvider > & | myValuePoolProvider | ) |
Context constructor, taking optional parameter ValuePoolProvider to setup the GhostValues in this context.
The current value of the ValuePool will be used. Note that a strong pointer to the ValuePool is stored here, such that the ValuePool is kept alive at least as long as the VContext is alive.
References setTime().