VISH
0.2
|
Think hard whether tha VComponentValue shouldn't rather refer to VValueType<> instead of an VValue<Type>, because then we can described structures recursively as components of each other More...
#include </home/werner/origo/vish/ocean/plankton/VValue.hpp>
Think hard whether tha VComponentValue shouldn't rather refer to VValueType<> instead of an VValue<Type>, because then we can described structures recursively as components of each other
Wizt::VComponentValue::VComponentValue | ( | const VComponentValue & | V | ) | [inline] |
Copy constructor: copies just the value, all reference pointing stuff is not duplicated.
Also, the age of the new object is recent.
override const type_info& Wizt::VComponentValue::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< ComponentType >.
override bool Wizt::VComponentValue::getValue | ( | ComponentType & | Variable | ) | const [inline] |
Implement the virtual function to get the current value.
Variable | The external storage space where to assign this value. |
override bool Wizt::VComponentValue::request | ( | const VRequest & | request, |
double | precision | ||
) | [inline] |
Ask to fullfill a request in a certain precision.
By default, this function does nothing, since the value to be computed is already stored here. However, since the function is virtual, a derived class might perform some actions here to compute the requested value.
precision | A quality parameter in the range [0,1]. Lower values indicate that this function should return as fast as possible, while higher values indicate that accuracy is more important than execution time. With a value of 0.0, the function should return immediately, at 1.0 it should take as long as required to perform the requested operation as accurate as possible. |
override bool Wizt::VComponentValue::setValue | ( | const ComponentType & | Variable | ) | [inline] |
Implement the assignment of the current value.
Variable | The external storage space from where to assign this value. |