ot_int Class Reference

OT_LIB Integer class. More...

#include <ot_int.h>

Inheritance diagram for ot_int:

ot_num< int > ot_obj

List of all members.

Public Member Functions

 ot_int (int val=0)
 ot_int (const ot_int &c)
 Copy constructor.
virtual ~ot_int ()
ot_objdup (void) const
ot_int operator= (const ot_int &c)
 Op. =.
bool operator== (const ot_int &c) const
 Op. ==.
bool operator!= (const ot_int &c)
 Op. !=.
ot_int operator+ (const ot_int &c) const
 Operator +.
ot_int operator- (const ot_int &c) const
 Operator -.
ot_int operator* (const ot_int &c) const
 Operator *.
ot_int operator/ (const ot_int &c) const
 Operator /.
void operator+= (const ot_int &c)
 Operator +=.
void operator-= (const ot_int &c)
 Operator -=.
void operator*= (const ot_int &c)
 Operator *=.
void operator/= (const ot_int &c)
 Operator /=.
void operator++ (void)
 Operator ++.
void operator-- (void)
 Operator --.
 operator int (void) const
 Cast operator.


Detailed Description

OT_LIB Integer class.

Implementation of the base integer object


Constructor & Destructor Documentation

ot_int::ot_int ( int  val = 0  )  [inline]

Constructor

Parameters:
val The value

Referenced by dup(), operator*(), operator+(), operator-(), and operator/().

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

Copy constructor.

virtual ot_int::~ot_int (  )  [inline, virtual]


Member Function Documentation

ot_obj* ot_int::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_int().

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

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

Op. ==.

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

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

Op. !=.

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

Operator +.

References ot_num< X >::m_value, ot_num< int >::m_value, and ot_int().

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

Operator -.

References ot_num< X >::m_value, ot_num< int >::m_value, and ot_int().

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

Operator *.

References ot_num< X >::m_value, ot_num< int >::m_value, and ot_int().

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

Operator /.

References ot_num< X >::m_value, ot_num< int >::m_value, and ot_int().

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

Operator +=.

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

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

Operator -=.

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

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

Operator *=.

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

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

Operator /=.

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

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

Operator ++.

References ot_num< int >::m_value.

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

Operator --.

References ot_num< int >::m_value.

ot_int::operator int ( void   )  const [inline]

Cast operator.

References ot_num< int >::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