Public Member Functions

Wizt::ValueSet Struct Reference

A set of values. More...

#include <ocean/plankton/ValueSet.hpp>

List of all members.

Public Member Functions


Detailed Description

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.

Examples:

ComputeMultiStreamLines.cpp.


Constructor & Destructor Documentation

Wizt::ValueSet::ValueSet ( const MemCore::WeakPtr< VValueBase > &  V  )  [inline]

Construct a value set with a single value.

           RefPtr<ValueSet> V = new ValueSet( MyInteger(Context) );

Member Function Documentation

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)

The documentation for this struct was generated from the following files: