OGRE
1.9.0
|
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 () | |
AnyNumeric (const AnyNumeric &other) | |
template<typename ValueType > | |
AnyNumeric (const ValueType &value) | |
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. | |
Protected Attributes | |
placeholder * | mContent |
Specialised Any class which has built in arithmetic operators, but can hold only types which support operator +,-,* and / .
Ogre::AnyNumeric::AnyNumeric | ( | ) |
Definition at line 250 of file OgreAny.h.
Referenced by operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and operator=().
Definition at line 256 of file OgreAny.h.
References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_NEW_T.
Ogre::AnyNumeric::AnyNumeric | ( | const AnyNumeric & | other | ) |
Definition at line 262 of file OgreAny.h.
References Ogre::Any::placeholder::clone(), and Ogre::Any::mContent.
|
protected |
|
inherited |
Definition at line 122 of file OgreAny.h.
References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_DELETE_T.
Referenced by Ogre::Any::~Any(), and Ogre::WorkQueue::Response::abortRequest().
Definition at line 218 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, Ogre::Any::getType(), Ogre::Any::mContent, and OGRE_EXCEPT.
|
inherited |
Definition at line 109 of file OgreAny.h.
References Ogre::Any::placeholder::getType(), and Ogre::Any::mContent.
Referenced by Ogre::Any::get(), and Ogre::Any::operator()().
|
inherited |
Definition at line 104 of file OgreAny.h.
References Ogre::Any::mContent.
|
inherited |
Definition at line 194 of file OgreAny.h.
References Ogre::Exception::ERR_INVALIDPARAMS, Ogre::Any::getType(), Ogre::Any::mContent, and OGRE_EXCEPT.
AnyNumeric Ogre::AnyNumeric::operator* | ( | const AnyNumeric & | rhs | ) | const |
Definition at line 358 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric Ogre::AnyNumeric::operator* | ( | Real | factor | ) | const |
Definition at line 363 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric & Ogre::AnyNumeric::operator*= | ( | const AnyNumeric & | rhs | ) |
Definition at line 385 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric Ogre::AnyNumeric::operator+ | ( | const AnyNumeric & | rhs | ) | const |
Definition at line 348 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric & Ogre::AnyNumeric::operator+= | ( | const AnyNumeric & | rhs | ) |
Definition at line 373 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric Ogre::AnyNumeric::operator- | ( | const AnyNumeric & | rhs | ) | const |
Definition at line 353 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric & Ogre::AnyNumeric::operator-= | ( | const AnyNumeric & | rhs | ) |
Definition at line 379 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric Ogre::AnyNumeric::operator/ | ( | const AnyNumeric & | rhs | ) | const |
Definition at line 368 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric & Ogre::AnyNumeric::operator/= | ( | const AnyNumeric & | rhs | ) |
Definition at line 391 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::mContent.
AnyNumeric & Ogre::AnyNumeric::operator= | ( | const AnyNumeric & | rhs | ) |
Definition at line 343 of file OgreAny.h.
References AnyNumeric(), and Ogre::Any::swap().
Definition at line 83 of file OgreAny.h.
References Ogre::Any::mContent, and std::swap().
Referenced by Ogre::Any::operator=(), operator=(), and Ogre::Any::operator=().
|
protectedinherited |
Definition at line 185 of file OgreAny.h.
Referenced by AnyNumeric(), AnyNumeric(), AnyNumeric(), Ogre::Any::destroy(), Ogre::Any::get(), Ogre::Any::getType(), Ogre::Any::isEmpty(), Ogre::Any::operator()(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and Ogre::Any::swap().