OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
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 ()
 AnyNumeric (const AnyNumeric &other)
template<typename ValueType>
 AnyNumeric (const ValueType &value)
virtual ~AnyNumeric ()
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

◆ AnyNumeric() [1/3]

◆ AnyNumeric() [2/3]

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

◆ AnyNumeric() [3/3]

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

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

◆ ~AnyNumeric()

virtual Ogre::AnyNumeric::~AnyNumeric ( )
virtual

Member Function Documentation

◆ destroy()

void Ogre::Any::destroy ( )
inlineinherited
Deprecated
use reset() instead

References reset().

◆ get()

template<typename ValueType>
ValueType Ogre::Any::get ( void ) const
inlineinherited
Deprecated
use Ogre::any_cast instead

References any_cast.

◆ getType()

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

References type().

◆ has_value()

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

Referenced by isEmpty().

◆ isEmpty()

bool Ogre::Any::isEmpty ( ) const
inlineinherited
Deprecated
use has_value() instead

References has_value().

◆ operator()()

template<typename ValueType>
ValueType Ogre::Any::operator() ( ) const
inlineinherited
Deprecated
use Ogre::any_cast instead

References any_cast.

◆ operator*() [1/2]

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

References AnyNumeric().

◆ operator*() [2/2]

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

References AnyNumeric().

◆ operator*=()

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

References AnyNumeric().

◆ operator+()

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

References AnyNumeric().

◆ operator+=()

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

References AnyNumeric().

◆ operator-()

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

References AnyNumeric().

◆ operator-=()

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

References AnyNumeric().

◆ operator/()

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

References AnyNumeric().

◆ operator/=()

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

References AnyNumeric().

◆ operator=()

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

References AnyNumeric().

◆ reset()

void Ogre::Any::reset ( )
inlineinherited

References Ogre::MEMCATEGORY_GENERAL, and OGRE_DELETE_T.

Referenced by destroy().

◆ swap()

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

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

◆ type()

const std::type_info & Ogre::Any::type ( ) const
inlineinherited

Referenced by any_cast, Ogre::any_cast(), and getType().


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