#include <ot_lib.h>
Public Member Functions | |
ot_int (int val=0) | |
ot_int (const ot_int &c) | |
Copy constructor. | |
virtual | ~ot_int () |
ot_obj * | dup (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. |
Implementation of the base integer object
ot_lib::ot_int::ot_int | ( | int | val = 0 |
) | [inline] |
Constructor
val | The value |
ot_lib::ot_int::ot_int | ( | const ot_int & | c | ) | [inline] |
Copy constructor.
virtual ot_lib::ot_int::~ot_int | ( | ) | [inline, virtual] |
ot_obj* ot_lib::ot_int::dup | ( | void | ) | const [inline, virtual] |
Clone the object and return the pointer of the new object
Implements ot_lib::ot_obj.
bool ot_lib::ot_int::operator== | ( | const ot_int & | c | ) | const [inline] |
Op. ==.
bool ot_lib::ot_int::operator!= | ( | const ot_int & | c | ) | [inline] |
Op. !=.
void ot_lib::ot_int::operator+= | ( | const ot_int & | c | ) | [inline] |
Operator +=.
void ot_lib::ot_int::operator-= | ( | const ot_int & | c | ) | [inline] |
Operator -=.
void ot_lib::ot_int::operator*= | ( | const ot_int & | c | ) | [inline] |
Operator *=.
void ot_lib::ot_int::operator/= | ( | const ot_int & | c | ) | [inline] |
Operator /=.
void ot_lib::ot_int::operator++ | ( | void | ) | [inline] |
Operator ++.
void ot_lib::ot_int::operator-- | ( | void | ) | [inline] |
Operator --.
ot_lib::ot_int::operator int | ( | void | ) | const [inline] |
Cast operator.