zeus::TZValueType< T > Class Template Reference

#include <ZValueType.hpp>

Inheritance diagram for zeus::TZValueType< T >:

zeus::TZObject zeus::IZUnknown

List of all members.

Public Member Functions

 TZValueType ()
 TZValueType (const TZValueType< T > &rValue)
 TZValueType (T tValue)
virtual ~TZValueType ()
T & getValue ()
const T & getValue () const
TZValueType< T > & operator= (const TZValueType< T > &rInVal)
TZValueType< T > & operator= (const T tValue)
bool operator== (const TZValueType< T > &rValue) const
bool operator== (const T tValue) const
bool operator!= (const TZValueType< T > &rValue) const
bool operator!= (const T tValue) const
operator+ (const TZValueType< T > &rValue) const
operator+ (const T tValue) const
operator- (const TZValueType< T > &rValue) const
operator- (const T tValue) const
operator* (const TZValueType< T > &rValue) const
operator* (const T tValue) const
operator/ (const TZValueType< T > &rValue) const
operator/ (const T tValue) const
T & operator+= (const TZValueType< T > &rValue)
T & operator+= (const T tValue)
T & operator-= (const TZValueType< T > &rValue)
T & operator-= (const T tValue)
T & operator*= (const TZValueType< T > &rValue)
T & operator*= (const T tValue)
T & operator/= (const TZValueType< T > &rValue)
T & operator/= (const T tValue)
T & operator* ()
const T & operator* () const

Protected Attributes

m_tValue
 internal value


Detailed Description

template<class T>
class zeus::TZValueType< T >

Template class for value objects, such as TFloat and TInt

Constructor & Destructor Documentation

template<class T>
zeus::TZValueType< T >::TZValueType (  )  [inline]

Creates an empty value object

template<class T>
zeus::TZValueType< T >::TZValueType ( const TZValueType< T > &  rValue  )  [inline]

Creates a value object out of an other value object

template<class T>
zeus::TZValueType< T >::TZValueType ( tValue  )  [inline]

Creates a value object out of a value value

template<class T>
zeus::TZValueType< T >::~TZValueType (  )  [inline, virtual]

Destroys the value object


Member Function Documentation

template<class T>
T & zeus::TZValueType< T >::getValue (  )  [inline]

gets the value of the value object

template<class T>
const T & zeus::TZValueType< T >::getValue (  )  const [inline]

gets the value of the value object

template<class T>
TZValueType< T > & zeus::TZValueType< T >::operator= ( const TZValueType< T > &  rInVal  )  [inline]

assigns a value to this object

template<class T>
TZValueType< T > & zeus::TZValueType< T >::operator= ( const T  tValue  )  [inline]

assigns a value to this double object

template<class T>
bool zeus::TZValueType< T >::operator== ( const TZValueType< T > &  rValue  )  const [inline]

equals operator to check if two floats are the same

template<class T>
bool zeus::TZValueType< T >::operator== ( const T  tValue  )  const [inline]

equals operator to check if two floats are the same

Reimplemented in zeus::TFloat.

template<class T>
bool zeus::TZValueType< T >::operator!= ( const TZValueType< T > &  rValue  )  const [inline]

not-equals operator to check if two floats are not the same

template<class T>
bool zeus::TZValueType< T >::operator!= ( const T  tValue  )  const [inline]

not-equals operator to check if two floats are not the same

Reimplemented in zeus::TFloat.

template<class T>
T zeus::TZValueType< T >::operator+ ( const TZValueType< T > &  rValue  )  const [inline]

adds a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator+ ( const T  tValue  )  const [inline]

adds a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator- ( const TZValueType< T > &  rValue  )  const [inline]

subtracts a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator- ( const T  tValue  )  const [inline]

subtracts a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator* ( const TZValueType< T > &  rValue  )  const [inline]

multiplies a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator* ( const T  tValue  )  const [inline]

multiplies a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator/ ( const TZValueType< T > &  rValue  )  const [inline]

devides a value to this value and returns a new object

template<class T>
T zeus::TZValueType< T >::operator/ ( const T  tValue  )  const [inline]

devides a value to this value and returns a new object

template<class T>
T & zeus::TZValueType< T >::operator+= ( const TZValueType< T > &  rValue  )  [inline]

adds a value to this object

template<class T>
T & zeus::TZValueType< T >::operator+= ( const T  tValue  )  [inline]

adds a value to this object

template<class T>
T & zeus::TZValueType< T >::operator-= ( const TZValueType< T > &  rValue  )  [inline]

subtracts a value from this object

template<class T>
T & zeus::TZValueType< T >::operator-= ( const T  tValue  )  [inline]

subtracts a value from this object

template<class T>
T & zeus::TZValueType< T >::operator*= ( const TZValueType< T > &  rValue  )  [inline]

multiblies a value with this object

template<class T>
T & zeus::TZValueType< T >::operator*= ( const T  tValue  )  [inline]

multiblies a value with this object

template<class T>
T & zeus::TZValueType< T >::operator/= ( const TZValueType< T > &  rValue  )  [inline]

dividide a value with this object

template<class T>
T & zeus::TZValueType< T >::operator/= ( const T  tValue  )  [inline]

dividide a value with this object

template<class T>
T & zeus::TZValueType< T >::operator* (  )  [inline]

gets the value of the object

template<class T>
const T & zeus::TZValueType< T >::operator* (  )  const [inline]

gets the value of the object


Member Data Documentation

template<class T>
T zeus::TZValueType< T >::m_tValue [protected]

internal value


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:36 2009