VISH
0.2
|
Implementation of a VISH type via procedural referencing instead of instantiation. More...
#include </home/werner/origo/vish/ocean/plankton/VAbstractValue.hpp>
Implementation of a VISH type via procedural referencing instead of instantiation.
All object interactions in VISH are performed via types. As such, a type is used to query for implementations of some functionality. Sometimes the type itself as data storage object is not of relevance at all, but just the functionality it provides. For such cases there might just be a single instance of this type in the entire application. Still, each VObject requiring this functionality will query for this type. What the VObject then will get is a reference to this certain type that allows to call its member functions.
In other words, when Type is such an abstract object, then VValue<Type> is just a pointer to an instance of this Type.
override const type_info& Wizt::VAbstractValue::getType | ( | ) | const [inline] |
Implement the virtual function to query the type ID of this value.
For this value, the type is fixed throughout its lifetime and corresponds to the type of the template argument.
Reimplemented from Wizt::VTypedValueBase< Type >.
override bool Wizt::VAbstractValue::getValue | ( | Type & | Variable | ) | const [inline, virtual] |
Implement the virtual function to get the current value.
Variable | The external storage space where to assign this value. |
Implements Wizt::VTypedValueBase< Type >.
override bool Wizt::VAbstractValue::setValue | ( | const Type & | Variable | ) | [inline, virtual] |
Implement the assignment of the current value.
Variable | The external storage space from where to assign this value. |
Implements Wizt::VTypedValueBase< Type >.