OGRE
1.9.0
|
Variant type that can hold Any other type. More...
#include <OgreAny.h>
Classes | |
class | holder |
class | placeholder |
Public Member Functions | |
Any () | |
Any (const Any &other) | |
template<typename ValueType> | |
Any (const ValueType &value) | |
virtual | ~Any () |
void | destroy () |
template<typename ValueType> | |
ValueType | get (void) const |
const std::type_info & | getType () const |
bool | isEmpty () const |
template<typename ValueType> | |
ValueType | operator() () const |
Any & | operator= (const Any &rhs) |
template<typename ValueType> | |
Any & | operator= (const ValueType &rhs) |
Any & | swap (Any &rhs) |
Protected Attributes | |
placeholder * | mContent |
Friends | |
template<typename ValueType> | |
ValueType * | any_cast (Any *operand) |
std::ostream & | operator<< (std::ostream &o, const Any &v) |
Ogre::Any::Any | ( | ) |
Definition at line 60 of file OgreAny.h.
References mContent.
Referenced by Any(), Ogre::AnyNumeric::AnyNumeric(), Ogre::AnyNumeric::AnyNumeric(), any_cast, operator<<, operator=(), operator=(), and swap().
Definition at line 66 of file OgreAny.h.
References mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_NEW_T.
Ogre::Any::Any | ( | const Any & | other | ) |
void Ogre::Any::destroy | ( | ) |
Definition at line 122 of file OgreAny.h.
References mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_DELETE_T.
Referenced by ~Any().
Definition at line 218 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, getType(), mContent, and OGRE_EXCEPT.
const std::type_info & Ogre::Any::getType | ( | ) | const |
Definition at line 109 of file OgreAny.h.
References mContent.
Referenced by any_cast, Ogre::any_cast(), get(), and operator()().
Definition at line 194 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, getType(), mContent, and OGRE_EXCEPT.
Definition at line 83 of file OgreAny.h.
References Any(), mContent, and std::swap().
Referenced by operator=(), operator=(), and Ogre::AnyNumeric::operator=().
|
friend |
|
protected |
Definition at line 185 of file OgreAny.h.
Referenced by Any(), Any(), Any(), Ogre::AnyNumeric::AnyNumeric(), Ogre::AnyNumeric::AnyNumeric(), Ogre::AnyNumeric::AnyNumeric(), any_cast, destroy(), get(), getType(), isEmpty(), operator()(), Ogre::AnyNumeric::operator*(), Ogre::AnyNumeric::operator*(), Ogre::AnyNumeric::operator*=(), Ogre::AnyNumeric::operator+(), Ogre::AnyNumeric::operator+=(), Ogre::AnyNumeric::operator-(), Ogre::AnyNumeric::operator-=(), Ogre::AnyNumeric::operator/(), Ogre::AnyNumeric::operator/=(), and swap().