VISH  0.2
Public Member Functions | Protected Attributes
Wizt::VAbstractValue Class Reference

Implementation of a VISH type via procedural referencing instead of instantiation. More...

#include </home/werner/origo/vish/ocean/plankton/VAbstractValue.hpp>

List of all members.

Public Member Functions

Protected Attributes


Detailed Description

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.


Member Function Documentation

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.

Returns:
True on successfull retrieval, which is always the case in the default implementation of a stored value. However, derived values which implement a procedural value might return false here as well.
Parameters:
VariableThe 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.

Parameters:
VariableThe external storage space from where to assign this value.

Implements Wizt::VTypedValueBase< Type >.


The documentation for this class was generated from the following file: