OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Class that provides convenient interface to establish a linkage between custom user application objects and Ogre core classes. More...
#include <OgreUserObjectBindings.h>
Public Member Functions | |
UserObjectBindings () | |
Class constructor. More... | |
UserObjectBindings (const UserObjectBindings &other) | |
Copy constructor. More... | |
~UserObjectBindings () | |
Class destructor. More... | |
void | clear () const |
Clear all user objects from this binding. More... | |
void | eraseUserAny (const String &key) |
Erase the custom user object associated with this class and key from this binding. More... | |
const Any & | getUserAny (void) const |
Retrieves the custom key less user object associated with this class. More... | |
const Any & | getUserAny (const String &key) const |
Retrieves the custom user object associated with this class and key. More... | |
UserObjectBindings & | operator= (const UserObjectBindings &rhs) |
void | setUserAny (const Any &anything) |
Sets any kind of user object on this class instance. More... | |
void | setUserAny (const String &key, const Any &anything) |
Sets any kind of user object on this class instance. More... | |
UserObjectBindings & | swap (UserObjectBindings &rhs) |
Static Public Member Functions | |
static const Any & | getEmptyUserAny () |
Returns empty user any object. More... | |
Class that provides convenient interface to establish a linkage between custom user application objects and Ogre core classes.
Any instance of Ogre class that will derive from this class could be associated with custom application object using this class interface.
Ogre::UserObjectBindings::UserObjectBindings | ( | ) |
Class constructor.
Ogre::UserObjectBindings::~UserObjectBindings | ( | ) |
Class destructor.
Ogre::UserObjectBindings::UserObjectBindings | ( | const UserObjectBindings & | other | ) |
Copy constructor.
Performs a copy of all stored UserAny.
void Ogre::UserObjectBindings::setUserAny | ( | const Any & | anything | ) |
Sets any kind of user object on this class instance.
const Any& Ogre::UserObjectBindings::getUserAny | ( | void | ) | const |
Retrieves the custom key less user object associated with this class.
Sets any kind of user object on this class instance.
key | The key that this data is associate with. |
anything | The data to associate with the given key. |
Retrieves the custom user object associated with this class and key.
key | The key that the requested user object is associated with. |
void Ogre::UserObjectBindings::eraseUserAny | ( | const String & | key | ) |
Erase the custom user object associated with this class and key from this binding.
key | The key that the requested user object is associated with. |
void Ogre::UserObjectBindings::clear | ( | ) | const |
Clear all user objects from this binding.
|
inlinestatic |
Returns empty user any object.
|
inline |
References std::swap().
Referenced by operator=().
|
inline |
References Ogre::MEMCATEGORY_GENERAL, OGRE_DELETE_T, OGRE_NEW_T, and swap().