Developer Documentation
|
The property handle, use it to access the properties. More...
#include <ObjectTypes/Skeleton/Properties.hh>
Public Member Functions | |
PropertyHandleT (int _idx=-1) | |
Constructs a new property handle. More... | |
virtual | ~PropertyHandleT () |
Destructor. | |
bool | isValid () |
Returns true if the handle is valid, false otherwise. More... | |
Protected Types | |
typedef T | value_type |
Protected Attributes | |
int | idx_ |
The properties index. | |
Friends | |
class | Properties |
The property handle, use it to access the properties.
The template parameter corresponds to the type stored by this property.
Definition at line 75 of file Properties.hh.
PropertyHandleT< T >::PropertyHandleT | ( | int | _idx = -1 | ) |
Constructs a new property handle.
Do not use the index parameter, unless you really know what you do. Rather pass 0 and then use Properties::get_property.
_idx | The properties internal index, use with caution (or better, don't use at all) |
Definition at line 200 of file PropertiesT.cc.
|
inline |
Returns true if the handle is valid, false otherwise.
This method does not test if there is a property with that index, so make sure you don't use handles after their property was deleted or use invalid values in the constructor.
Definition at line 224 of file PropertiesT.cc.