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