OGRE 14.3
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. | |
virtual T | get () const |
Ogre::Any | getValue () const override |
Return the current value as an Any. | |
virtual void | set (T val) |
Set the property value. | |
Public Member Functions inherited from Ogre::PropertyBase | |
PropertyBase (PropertyDef *def) | |
Constructor. | |
virtual | ~PropertyBase () |
const String & | getDescription () const |
Get the description of the property. | |
const String & | getName () const |
Get the name of the property. | |
PropertyType | getType () const |
Get the type of the property. | |
Property instance with passthrough calls to a given object.
|
inline |
Construct a property which is able to directly call a given getter and setter on a specific object instance, via functors.
Set the property value.
Referenced by Ogre::Property< T >::getValue().
|
inlineoverridevirtual |
Return the current value as an Any.
Implements Ogre::PropertyBase.
References Ogre::Property< T >::get().