OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Property instance with passthrough calls to a given object. More...
#include <OgreProperty.h>
Public Types | |
typedef function< T(void) > | getter_func |
typedef function< void(T) > | setter_func |
typedef T | value_type |
Public Member Functions | |
Property (PropertyDef *def, getter_func getter, setter_func setter) | |
Construct a property which is able to directly call a given getter and setter on a specific object instance, via functors. More... | |
virtual T | get () const |
const String & | getDescription () const |
Get the description of the property. More... | |
const String & | getName () const |
Get the name of the property. More... | |
PropertyType | getType () const |
Get the type of the property. More... | |
Ogre::Any | getValue () const |
Return the current value as an Any. More... | |
virtual void | set (T val) |
Set the property value. More... | |
Property instance with passthrough calls to a given object.
typedef T Ogre::Property< T >::value_type |
typedef function< T (void) > Ogre::Property< T >::getter_func |
typedef function< void (T) > Ogre::Property< T >::setter_func |
|
inline |
Construct a property which is able to directly call a given getter and setter on a specific object instance, via functors.
|
inlinevirtual |
Set the property value.
|
inlinevirtual |
|
inlinevirtual |
Return the current value as an Any.
Implements Ogre::PropertyBase.
|
inlineinherited |
Get the name of the property.
|
inlineinherited |
Get the description of the property.
|
inlineinherited |
Get the type of the property.
Referenced by Ogre::PropertySet::setValue().