|
Public Member Functions |
| | Local () |
| | Constructs an empty instance.
|
| template<class T> |
| | Local (T t) |
| | Constructs an instance with an initial value.
|
| template<class T, class U> |
| | Local (const Local< T, U > &rhs) |
| | Constructs an instance with a value copied from the given Local.
|
| | Local (const Variable &v) |
| | Constructs an instance of this local copied from within a Variable.
|
| size_t | getSize () const |
| | Returns the size in bytes of the value held.
|
| const std::type_info & | getTypeInfo () const |
| | Returns the type info of the type held.
|
| void | lock () |
| | Locks the Local so that it cannot be written to.
|
| void | unlock () |
| | Unlocks write access to the Local.
|
| bool | isLocked () const |
| | Returns true if this instance is locked.
|
| void | _fromAny (const Odyssey::Any &val) |
| Odyssey::Any | _toAny () const |
| | Converts to an Any variable holding a value of type value_t (from traits).
|
| void | _fromString (const Odyssey::String &val) |
| | Converts from a string.
|
| Odyssey::String | _toString () const |
| | Converts to a string.
|
| Local & | operator= (const Variable &rhs) |
| template<class T, class U> |
| Local & | operator= (const Local< T, U > &rhs) |
| template<class T> |
| Local & | operator= (T t) |
| template<class T> |
| | operator T () const |
Friends |
| template<class T, class U, class V, class W> |
| std::basic_istream< T, U > & | operator>> (std::basic_istream< T, U > &, Local< U, V > &) |
This generic data type implements all the generic data conversion routines and is a wrapper for known types. It is useful for providing a conversion mechanism for simple types to interact with Variable and Property.