#include <numTools.h>
Public Member Functions | |
DubInt () | |
null constructor | |
DubInt (int a, int b) | |
constructor | |
DubInt (const DubInt &db) | |
copy constructor | |
int | i () const |
return the first int value _i | |
int | j () const |
return the second int value _j | |
string | print () |
print function | |
void | setFirst (int a) |
set first int | |
void | setSecond (int a) |
set Second int | |
bool | operator== (DubInt other) const |
Operator ==. | |
bool | operator!= (DubInt other) const |
Operator !=. | |
DubInt | operator+ (DubInt other) const |
Operator +. | |
void | operator= (const DubInt &other) |
Assigment operator =. | |
Protected Attributes | |
int | _i |
int | _j |
DubInt::DubInt | ( | ) |
null constructor
DubInt::DubInt | ( | int | a, | |
int | b | |||
) |
constructor
DubInt::DubInt | ( | const DubInt & | db | ) |
copy constructor
return the first int value _i return the second int value _j Operator != copy constructor
int DubInt::i | ( | ) | const |
return the first int value _i
int DubInt::j | ( | ) | const |
return the second int value _j
string DubInt::print | ( | ) |
print function
void DubInt::setFirst | ( | int | a | ) |
set first int
void DubInt::setSecond | ( | int | a | ) |
set Second int
bool DubInt::operator== | ( | DubInt | other | ) | const |
Operator ==.
bool DubInt::operator!= | ( | DubInt | other | ) | const |
Operator !=.
Operator !
void DubInt::operator= | ( | const DubInt & | other | ) |
Assigment operator =.
Operator =.
int DubInt::_i [protected] |
int DubInt::_j [protected] |