ot_float Class Reference

OT_LIB Float class. More...

#include <ot_float.h>

Inheritance diagram for ot_float:

ot_num< float > ot_obj

List of all members.

Public Member Functions

 ot_float (float val=0)
 ot_float (const ot_float &c)
 Copy constructor.
ot_objdup (void) const
ot_float operator= (const ot_float &c)
 Op. =.
bool operator== (const ot_float &c) const
 Op. ==.
bool operator!= (const ot_float &c)
 Op. !=.
ot_float operator+ (const ot_float &c) const
 Operator +.
ot_float operator- (const ot_float &c) const
 Operator -.
ot_float operator* (const ot_float &c) const
 Operator *.
ot_float operator/ (const ot_float &c) const
 Operator /.
void operator+= (const ot_float &c)
 Operator +=.
void operator-= (const ot_float &c)
 Operator -=.
void operator*= (const ot_float &c)
 Operator *=.
void operator/= (const ot_float &c)
 Operator /=.
void operator++ (void)
 Operator ++.
void operator-- (void)
 Operator --.
 operator float (void) const
 Cast operator.


Detailed Description

OT_LIB Float class.

Implementation of the base float object


Constructor & Destructor Documentation

ot_float::ot_float ( float  val = 0  )  [inline]

Constructor

Parameters:
val The value

Referenced by dup().

ot_float::ot_float ( const ot_float c  )  [inline]

Copy constructor.


Member Function Documentation

ot_obj* ot_float::dup ( void   )  const [inline, virtual]

Clone the object and return the pointer of the new object

Returns:
Pointer to the new object

Implements ot_obj.

References ot_float().

ot_float ot_float::operator= ( const ot_float c  )  [inline]

bool ot_float::operator== ( const ot_float c  )  const [inline]

bool ot_float::operator!= ( const ot_float c  )  [inline]

Op. !=.

ot_float ot_float::operator+ ( const ot_float c  )  const [inline]

Operator +.

References ot_num< X >::m_value, and ot_num< float >::m_value.

ot_float ot_float::operator- ( const ot_float c  )  const [inline]

Operator -.

References ot_num< X >::m_value, and ot_num< float >::m_value.

ot_float ot_float::operator* ( const ot_float c  )  const [inline]

Operator *.

References ot_num< X >::m_value, and ot_num< float >::m_value.

ot_float ot_float::operator/ ( const ot_float c  )  const [inline]

Operator /.

References ot_num< X >::m_value, and ot_num< float >::m_value.

void ot_float::operator+= ( const ot_float c  )  [inline]

Operator +=.

References ot_num< X >::m_value, and ot_num< float >::m_value.

void ot_float::operator-= ( const ot_float c  )  [inline]

Operator -=.

References ot_num< X >::m_value, and ot_num< float >::m_value.

void ot_float::operator*= ( const ot_float c  )  [inline]

Operator *=.

References ot_num< X >::m_value, and ot_num< float >::m_value.

void ot_float::operator/= ( const ot_float c  )  [inline]

Operator /=.

References ot_num< X >::m_value, and ot_num< float >::m_value.

void ot_float::operator++ ( void   )  [inline]

Operator ++.

References ot_num< float >::m_value.

void ot_float::operator-- ( void   )  [inline]

Operator --.

References ot_num< float >::m_value.

ot_float::operator float ( void   )  const [inline]

Cast operator.

References ot_num< float >::m_value.


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

Generated on Sun May 4 12:42:43 2008 for OT_LIB 4.1 by  doxygen 1.5.5