![]() |
JSBSim Flight Dynamics Model 1.2.3 (07 Jun 2025)
An Open Source Flight Dynamics and Control Software Library in C++
|
An indexed value managed through an object and access methods.
A read-only value will not have a setter; a write-only value will not have a getter.
#include <props.hxx>
Inheritance diagram for SGRawValueMethodsIndexed< C, T >:
Collaboration diagram for SGRawValueMethodsIndexed< C, T >:Public Types | |
| typedef T(C::* | getter_t) (int) const |
| typedef void(C::* | setter_t) (int, T) |
Public Member Functions | |
| SGRawValueMethodsIndexed (C &obj, int index, getter_t getter=0, setter_t setter=0) | |
| virtual SGRaw * | clone () const |
| virtual T | getValue () const |
| Return the underlying value. | |
| virtual bool | setValue (T value) |
| Assign a new 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. | |
| typedef T(C::* getter_t) (int) const |
| typedef void(C::* setter_t) (int, T) |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Return the underlying value.
Implements SGRawValue< T >.
Definition at line 624 of file props.hxx.
Here is the call graph for this function:
|
inlinevirtual |
Assign a new underlying value.
If the new value cannot be set (because this is a read-only raw value, or because the new value is not acceptable for some reason) this method returns false and leaves the original value unchanged.
| value | The actual value for the property. |
Implements SGRawValue< T >.
Definition at line 628 of file props.hxx.