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 () |
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 228 of file OgreAny.h.
Referenced by operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and operator=().
|
inline |
Definition at line 234 of file OgreAny.h.
References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_NEW_T.
|
inline |
Definition at line 240 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 109 of file OgreAny.h.
References Ogre::Any::placeholder::getType(), and Ogre::Any::mContent.
Referenced by Ogre::any_cast(), 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 336 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 341 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 326 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 351 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 331 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 357 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 346 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 369 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
|
inline |
Definition at line 321 of file OgreAny.h.
References AnyNumeric().
Definition at line 83 of file OgreAny.h.
References Ogre::Any::mContent.
|
protectedinherited |
Definition at line 185 of file OgreAny.h.
Referenced by Ogre::any_cast(), AnyNumeric(), Ogre::Any::destroy(), Ogre::Any::getType(), Ogre::Any::isEmpty(), Ogre::Any::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and Ogre::Any::swap().