OGRE  1.10.11
Object-Oriented Graphics Rendering Engine
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:

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 has_value () 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)
 
void reset ()
 
Anyswap (Any &rhs)
 
const std::type_info & type () const
 

Detailed Description

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

References Ogre::Any::swap().

AnyNumeric Ogre::AnyNumeric::operator+ ( const AnyNumeric rhs) const
inline
AnyNumeric Ogre::AnyNumeric::operator- ( const AnyNumeric rhs) const
inline
AnyNumeric Ogre::AnyNumeric::operator* ( const AnyNumeric rhs) const
inline
AnyNumeric Ogre::AnyNumeric::operator* ( Real  factor) const
inline
AnyNumeric Ogre::AnyNumeric::operator/ ( const AnyNumeric rhs) const
inline
AnyNumeric& Ogre::AnyNumeric::operator+= ( const AnyNumeric rhs)
inline
AnyNumeric& Ogre::AnyNumeric::operator-= ( const AnyNumeric rhs)
inline
AnyNumeric& Ogre::AnyNumeric::operator*= ( const AnyNumeric rhs)
inline
AnyNumeric& Ogre::AnyNumeric::operator/= ( const AnyNumeric rhs)
inline
Any& Ogre::Any::swap ( Any rhs)
inlineinherited

References std::swap().

Referenced by operator=().

bool Ogre::Any::has_value ( ) const
inlineinherited

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

bool Ogre::Any::isEmpty ( ) const
inlineinherited
const std::type_info& Ogre::Any::type ( ) const
inlineinherited
const std::type_info& Ogre::Any::getType ( void  ) const
inlineinherited
Deprecated:
use type() instead

References Ogre::Any::type().

Referenced by AnyNumeric(), and Ogre::Any::destroy().

void Ogre::Any::reset ( )
inlineinherited
void Ogre::Any::destroy ( )
inlineinherited
template<typename ValueType >
ValueType Ogre::Any::operator() ( ) const
inlineinherited
template<typename ValueType >
ValueType Ogre::Any::get ( void  ) const
inlineinherited

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