A raw value bound to a pointer. More...
#include <props.hxx>
Public Member Functions | |
SGRawValuePointer (T *ptr) | |
Explicit pointer constructor. | |
virtual | ~SGRawValuePointer () |
Destructor. | |
virtual T | getValue () const |
Get the underlying value. | |
virtual bool | setValue (T value) |
Set the underlying value. | |
virtual SGRaw * | clone () const |
Create a copy of this raw value. |
A raw value bound to a pointer.
This is the most efficient way to tie an external value, but also the most dangerous, because there is no way for the supplier to perform bounds checking and derived calculations except by polling the variable to see if it has changed. There is no default constructor, because this class would be meaningless without a pointer.
Definition at line 396 of file props.hxx.
SGRawValuePointer< T >::SGRawValuePointer | ( | T * | ptr | ) | [inline] |
virtual SGRaw* SGRawValuePointer< T >::clone | ( | ) | const [inline, virtual] |
virtual T SGRawValuePointer< T >::getValue | ( | ) | const [inline, virtual] |
Get the underlying value.
This method will dereference the pointer and return the variable's value.
Implements SGRawValue< T >.
virtual bool SGRawValuePointer< T >::setValue | ( | T | value | ) | [inline, virtual] |
Set the underlying value.
This method will dereference the pointer and change the variable's value.
Implements SGRawValue< T >.