A raw value bound to a pointer. More...
Public Member Functions
|SGRawValuePointer (T *ptr)|
|Explicit pointer constructor. |
|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.
|virtual T SGRawValuePointer< T >::getValue||(||)|| const
|virtual bool SGRawValuePointer< T >::setValue||(||T||value||)||