Specialised Any class which has built in arithmetic operators, but can hold only types which support operator +,-,* and / . More...
#include <OgreAny.h>
Classes | |
class | numholder |
class | numplaceholder |
Public Member Functions | |
AnyNumeric () | |
template<typename ValueType > | |
AnyNumeric (const ValueType &value) | |
AnyNumeric (const AnyNumeric &other) | |
void | destroy () |
template<typename ValueType > | |
ValueType | get (void) const |
const std::type_info & | getType () const |
bool | isEmpty () const |
template<typename ValueType > | |
ValueType | operator() () const |
AnyNumeric | operator* (const AnyNumeric &rhs) const |
AnyNumeric | operator* (Real factor) const |
AnyNumeric & | operator*= (const AnyNumeric &rhs) |
AnyNumeric | operator+ (const AnyNumeric &rhs) const |
AnyNumeric & | operator+= (const AnyNumeric &rhs) |
AnyNumeric | operator- (const AnyNumeric &rhs) const |
AnyNumeric & | operator-= (const AnyNumeric &rhs) |
AnyNumeric | operator/ (const AnyNumeric &rhs) const |
AnyNumeric & | operator/= (const AnyNumeric &rhs) |
AnyNumeric & | operator= (const AnyNumeric &rhs) |
Any & | swap (Any &rhs) |
Protected Member Functions | |
AnyNumeric (placeholder *pholder) | |
Construct from holder. More... | |
Protected Attributes | |
placeholder * | mContent |
Specialised Any class which has built in arithmetic operators, but can hold only types which support operator +,-,* and / .
|
inline |
Definition at line 250 of file OgreAny.h.
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and operator=().
|
inline |
Definition at line 256 of file OgreAny.h.
References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_NEW_T.
|
inline |
Definition at line 262 of file OgreAny.h.
References Ogre::Any::placeholder::clone(), and Ogre::Any::mContent.
|
inlineprotected |
|
inlineinherited |
Definition at line 122 of file OgreAny.h.
References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_DELETE_T.
Referenced by Ogre::Any::~Any().
|
inlineinherited |
Definition at line 218 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, Ogre::Any::getType(), Ogre::Any::mContent, and OGRE_EXCEPT.
|
inlineinherited |
Definition at line 109 of file OgreAny.h.
References Ogre::Any::placeholder::getType(), and Ogre::Any::mContent.
Referenced by Ogre::any_cast(), Ogre::Any::get(), and Ogre::Any::operator()().
|
inlineinherited |
Definition at line 104 of file OgreAny.h.
References Ogre::Any::mContent.
|
inlineinherited |
Definition at line 194 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, Ogre::Any::getType(), Ogre::Any::mContent, and OGRE_EXCEPT.
|
inline |
Definition at line 358 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 363 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 385 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 348 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 373 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 353 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 379 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 368 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 391 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 343 of file OgreAny.h.
References AnyNumeric().
Definition at line 83 of file OgreAny.h.
References Ogre::Any::mContent, and std::swap().
|
protectedinherited |
Definition at line 185 of file OgreAny.h.
Referenced by Ogre::any_cast(), AnyNumeric(), Ogre::Any::destroy(), Ogre::Any::get(), Ogre::Any::getType(), Ogre::Any::isEmpty(), Ogre::Any::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and Ogre::Any::swap().