Property instance with passthrough calls to a given object. More...
#include <OgreProperty.h>
Public Types | |
typedef boost::function< T(void) > | getter_func |
typedef boost::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 |
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. | |
Ogre::Any | getValue () const |
Return the current value as an Any. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
virtual void | set (T val) |
Set the property value. | |
Protected Member Functions | |
Property () | |
~Property () | |
Protected Attributes | |
PropertyDef * | mDef |
getter_func | mGetter |
setter_func | mSetter |
Property instance with passthrough calls to a given object.
Definition at line 221 of file OgreProperty.h.
Definition at line 225 of file OgreProperty.h.
Definition at line 226 of file OgreProperty.h.
Definition at line 224 of file OgreProperty.h.
Ogre::Property< T >::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.
Definition at line 231 of file OgreProperty.h.
|
protected |
Definition at line 257 of file OgreProperty.h.
|
protected |
Definition at line 258 of file OgreProperty.h.
Definition at line 245 of file OgreProperty.h.
References Ogre::Property< T >::mGetter.
Referenced by Ogre::Property< T >::getValue().
Get the description of the property.
Definition at line 204 of file OgreProperty.h.
Get the name of the property.
Definition at line 201 of file OgreProperty.h.
|
inherited |
Get the type of the property.
Definition at line 207 of file OgreProperty.h.
Referenced by Ogre::PropertySet::getPropertyImpl(), and Ogre::PropertySet::setPropertyImpl().
|
virtual |
Return the current value as an Any.
Implements Ogre::PropertyBase.
Definition at line 250 of file OgreProperty.h.
References Ogre::Property< T >::get().
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
Set the property value.
Definition at line 240 of file OgreProperty.h.
References Ogre::Property< T >::mSetter.
|
protectedinherited |
Definition at line 215 of file OgreProperty.h.
|
protected |
Definition at line 260 of file OgreProperty.h.
Referenced by Ogre::Property< T >::get().
|
protected |
Definition at line 261 of file OgreProperty.h.
Referenced by Ogre::Property< T >::set().
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.