![]() |
JSBSim Flight Dynamics Model 1.2.3 (07 Jun 2025)
An Open Source Flight Dynamics and Control Software Library in C++
|
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.
#include <props.hxx>
Inheritance diagram for SGRawValuePointer< T >:
Collaboration diagram for SGRawValuePointer< T >:Public Member Functions | |
| SGRawValuePointer (T *ptr) | |
| Explicit pointer constructor. | |
| virtual | ~SGRawValuePointer () |
| Destructor. | |
| virtual SGRaw * | clone () const |
| Create a copy of this raw value. | |
| virtual T | getValue () const |
| Get the underlying value. | |
| virtual bool | setValue (T value) |
| Set the underlying value. | |
Public Member Functions inherited from SGRawValue< T > | |
| SGRawValue () | |
| Constructor. | |
| virtual | ~SGRawValue () |
| Destructor. | |
| bool | DefaultValue () |
| const char * | DefaultValue () |
| virtual simgear::props::Type | getType () const |
| Return the type tag for this raw value type. | |
Additional Inherited Members | |
Static Public Member Functions inherited from SGRawValue< T > | |
| static T | DefaultValue () |
| The default underlying value for this type. | |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get the underlying value.
This method will dereference the pointer and return the variable's value.
Implements SGRawValue< T >.
Definition at line 438 of file props.hxx.
|
inlinevirtual |
Set the underlying value.
This method will dereference the pointer and change the variable's value.
Implements SGRawValue< T >.
Definition at line 446 of file props.hxx.