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