OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::AnyNumeric Class Reference

Specialised Any class which has built in arithmetic operators, but can hold only types which support operator +,-,* and / . More...

#include <OgreAny.h>

+ Inheritance diagram for Ogre::AnyNumeric:
+ Collaboration diagram for Ogre::AnyNumeric:

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
 
AnyNumericoperator*= (const AnyNumeric &rhs)
 
AnyNumeric operator+ (const AnyNumeric &rhs) const
 
AnyNumericoperator+= (const AnyNumeric &rhs)
 
AnyNumeric operator- (const AnyNumeric &rhs) const
 
AnyNumericoperator-= (const AnyNumeric &rhs)
 
AnyNumeric operator/ (const AnyNumeric &rhs) const
 
AnyNumericoperator/= (const AnyNumeric &rhs)
 
AnyNumericoperator= (const AnyNumeric &rhs)
 
Anyswap (Any &rhs)
 

Protected Member Functions

 AnyNumeric (placeholder *pholder)
 Construct from holder. More...
 

Protected Attributes

placeholdermContent
 

Detailed Description

Specialised Any class which has built in arithmetic operators, but can hold only types which support operator +,-,* and / .

Definition at line 245 of file OgreAny.h.

Constructor & Destructor Documentation

Ogre::AnyNumeric::AnyNumeric ( )
inline
template<typename ValueType >
Ogre::AnyNumeric::AnyNumeric ( const ValueType &  value)
inline

Definition at line 254 of file OgreAny.h.

References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_NEW_T.

Ogre::AnyNumeric::AnyNumeric ( const AnyNumeric other)
inline

Definition at line 260 of file OgreAny.h.

References Ogre::Any::placeholder::clone(), and Ogre::Any::mContent.

Ogre::AnyNumeric::AnyNumeric ( placeholder pholder)
inlineprotected

Construct from holder.

Definition at line 335 of file OgreAny.h.

References Ogre::Any::mContent.

Member Function Documentation

void Ogre::Any::destroy ( )
inlineinherited

Definition at line 120 of file OgreAny.h.

References Ogre::Any::mContent, Ogre::MEMCATEGORY_GENERAL, and OGRE_DELETE_T.

Referenced by Ogre::Any::~Any().

template<typename ValueType >
ValueType Ogre::Any::get ( void  ) const
inlineinherited
const std::type_info& Ogre::Any::getType ( void  ) const
inlineinherited
bool Ogre::Any::isEmpty ( ) const
inlineinherited

Definition at line 102 of file OgreAny.h.

References Ogre::Any::mContent.

template<typename ValueType >
ValueType Ogre::Any::operator() ( ) const
inlineinherited
AnyNumeric Ogre::AnyNumeric::operator* ( const AnyNumeric rhs) const
inline

Definition at line 356 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric Ogre::AnyNumeric::operator* ( Real  factor) const
inline

Definition at line 361 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric& Ogre::AnyNumeric::operator*= ( const AnyNumeric rhs)
inline

Definition at line 383 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric Ogre::AnyNumeric::operator+ ( const AnyNumeric rhs) const
inline

Definition at line 346 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric& Ogre::AnyNumeric::operator+= ( const AnyNumeric rhs)
inline

Definition at line 371 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric Ogre::AnyNumeric::operator- ( const AnyNumeric rhs) const
inline

Definition at line 351 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric& Ogre::AnyNumeric::operator-= ( const AnyNumeric rhs)
inline

Definition at line 377 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric Ogre::AnyNumeric::operator/ ( const AnyNumeric rhs) const
inline

Definition at line 366 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric& Ogre::AnyNumeric::operator/= ( const AnyNumeric rhs)
inline

Definition at line 389 of file OgreAny.h.

References AnyNumeric(), and Ogre::Any::mContent.

AnyNumeric& Ogre::AnyNumeric::operator= ( const AnyNumeric rhs)
inline

Definition at line 341 of file OgreAny.h.

References AnyNumeric().

Any& Ogre::Any::swap ( Any rhs)
inlineinherited

Definition at line 81 of file OgreAny.h.

References Ogre::Any::mContent, and std::swap().

Member Data Documentation


The documentation for this class was generated from the following file: