VISH
0.2
|
#include </home/werner/origo/vish/ocean/plankton/ValueSet.hpp>
(Note that these are not member functions.)
A set of values.
Typical usage synopsis:
class MyObject : VObject { TypedSlot<int> MyInteger; void proc(VRenderContext&Context) const { RefPtr<ValueSet> V = new ValueSet(); // Add the current value of the slot MyInteger to the given ValueSet *V <<= MyInteger(Context); ... } };
The ValueSet takes a VValueBase as a reference to a value and stores its current state. While the content of the VValueBase itself may change, the ValueSet knows about its former value and allows to compare it.
Wizt::ValueSet::ValueSet | ( | const MemCore::WeakPtr< VValueBase > & | V | ) | [inline] |
Construct a value set with a single value.
RefPtr<ValueSet> V = new ValueSet( MyInteger(Context) );
ValueSet& Wizt::ValueSet::operator<<= | ( | const MemCore::WeakPtr< VValueBase > & | V | ) | [inline] |
Operator overload function to add values to this set, can be written consecutively:
RefPtr<ValueSet> V = new ValueSet(); // Add the current value of the slots MyInteger and MySecondInteger to the given ValueSet *V <<= MyInteger(Context) <<= MySecondInteger(Context)
ValueSetPair operator& | ( | const RefPtr< ValueSet > & | VS, |
const RefPtr< ValuePool > & | VP | ||
) | [related] |