![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Defines a complete set of properties for a single object instance. More...
#include <OgreProperty.h>
Public Types | |
typedef Ogre::MapIterator< PropertyMap > | PropertyIterator |
typedef map< String, PropertyBase * >::type | PropertyMap |
Public Member Functions | |
PropertySet () | |
~PropertySet () | |
void | addProperty (PropertyBase *prop) |
Adds a property to this set. | |
PropertyBase * | getProperty (const String &name) const |
Gets the property object for a given property name. | |
PropertyIterator | getPropertyIterator () |
Get an iterator over the available properties. | |
template<typename T > | |
void | getValue (const String &name, T &value) const |
Get a named property value. | |
PropertyValueMap | getValueMap () const |
Gets an independently usable collection of property values from the current state. | |
bool | hasProperty (const String &name) const |
Reports whether this property set contains a named property. | |
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 | |
void | removeProperty (const String &name) |
Removes the named property from the property set. | |
void | setValue (const String &name, const char *pChar) |
Special-case char*, convert to String automatically. | |
template<typename T > | |
void | setValue (const String &name, const T *value) |
Set a named property value (via pointer to avoid copy). | |
template<typename T > | |
void | setValue (const String &name, T value) |
Set a named property value. | |
void | setValueMap (const PropertyValueMap &values) |
Sets the current state from a given value map. | |
Defines a complete set of properties for a single object instance.
Ogre::PropertySet::PropertySet | ( | ) |
Ogre::PropertySet::~PropertySet | ( | ) |
void Ogre::PropertySet::addProperty | ( | PropertyBase * | prop | ) |
Adds a property to this set.
PropertyBase * Ogre::PropertySet::getProperty | ( | const String & | name | ) | const |
Gets the property object for a given property name.
PropertyIterator Ogre::PropertySet::getPropertyIterator | ( | ) |
Get an iterator over the available properties.
|
inline |
Get a named property value.
PropertyValueMap Ogre::PropertySet::getValueMap | ( | ) | const |
Gets an independently usable collection of property values from the current state.
Reports whether this property set contains a named property.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
Removes the named property from the property set.
Special-case char*, convert to String automatically.
References Ogre::PROP_STRING.
|
inline |
Set a named property value (via pointer to avoid copy).
Set a named property value.
void Ogre::PropertySet::setValueMap | ( | const PropertyValueMap & | values | ) |
Sets the current state from a given value map.