VISH
0.2
|
Output properties of an object. More...
#include </home/werner/origo/vish/ocean/plankton/VObject.hpp>
Output properties of an object.
Given a type Alpha, the output object must declare a member
VOutput<Alpha> myAlpha;
whereas the child object must declare a usual typed slots, such as
TypedSlot<Alpha> myAlphaInput;
The associated global value can be accessed via the function call operator:
VOutput<Alpha> myAlpha; Alpha&a = myAlpha();
Wizt::VOutput::VOutput | ( | const WeakPtr< VObject > & | Source, |
const string & | initial_name, | ||
const Type & | InitValue, | ||
const RefPtr< VCreationPreferences > & | CP = NullPtr() |
||
) | [inline] |
Constructor:
Source | The VObject providing this output parameter |
Wizt::VOutput::VOutput | ( | const VObject::Deferred & | ) | [inline] |
Default constructor - allows to create VOutputs with deferred construction, eventually dynamically, instead of during construction.
class MyObject : VObject { VOutput<double> MaybeOutput; MyObject() : MaybeOutput( Deferred() ) { MaybeOutput = VOutput<double>(self(), "myparam", 0.5); } };