#include <props.hxx>

Public Member Functions | |
| virtual T | getValue () const |
| Return the underlying value. | |
| virtual bool | setValue (T value) |
| Assign a new underlying value. | |
| virtual SGRawValue< T > * | clone () const |
| Create a new deep copy of this raw value. | |
A read-only value will not have a setter; a write-only value will not have a getter. An indexed value is useful for binding one of a list of possible values (such as multiple engines for a plane). The index is hard-coded at creation time.
Definition at line 346 of file props.hxx.
| virtual T SGRawValueFunctionsIndexed< T >::getValue | ( | ) | const [inline, virtual] |
Return the underlying value.
Implements SGRawValue< T >.
| virtual bool SGRawValueFunctionsIndexed< T >::setValue | ( | T | value | ) | [inline, virtual] |
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 >.
| virtual SGRawValue<T>* SGRawValueFunctionsIndexed< T >::clone | ( | ) | const [inline, virtual] |
Create a new deep copy of this raw value.
The copy will contain its own version of the underlying value as well.
Implements SGRawValue< T >.
1.5.6