DubInt Class Reference
[Tools]

Class representing a couple of int. More...

#include <numTools.h>

List of all members.

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


Detailed Description

Class representing a couple of int.

Author:
Paolo Stegagno

Constructor & Destructor Documentation

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


Member Function Documentation

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 !

DubInt DubInt::operator+ ( DubInt  other  )  const

Operator +.

void DubInt::operator= ( const DubInt other  ) 

Assigment operator =.

Operator =.


Member Data Documentation

int DubInt::_i [protected]

int DubInt::_j [protected]


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

Generated on Mon Feb 20 07:01:09 2017 for MIP by  doxygen 1.5.6