#include <cdatn.h>
Public Member Functions | |
virtual | ~CDatN () |
Default dtor. | |
CDatN (const CDatN &other) | |
Copy constructor for CDatN. | |
CDatN (const int newval, unsigned width=31) | |
Copy constructor for int. | |
int | getValue () const |
returns value of CDatN | |
operator int () | |
convert to int | |
bool | operator< (const CDatN &x) const |
implementation of operator < | |
bool | operator== (const CDatN &x) const |
implementation of operator == | |
CDatN & | operator= (const int &newval) |
implementation of operator = | |
CDatN & | operator+= (const CDatN &x) |
implementation of operator += | |
CDatN & | operator-= (const CDatN &x) |
implementation of operator -= | |
CDatN & | operator *= (const CDatN &x) |
implementation of operator *= | |
CDatN & | operator/= (const CDatN &x) |
implementation of operator /= | |
CDatN & | operator%= (const CDatN &x) |
implementation of operator %= | |
CDatN & | operator|= (const CDatN &x) |
implementation of operator |= | |
CDatN & | operator &= (const CDatN &x) |
implementation of operator &= | |
CDatN & | operator^= (const CDatN &x) |
implementation of operator ^= | |
CDatN & | operator++ () |
implementation of operator ++ | |
CDatN & | operator-- () |
implementation of operator -- | |
Protected Attributes | |
int | m_value |
unsigned | m_width |
Friends | |
std::ostream & | operator<< (std::ostream &stream, CDatN cdat) |
Shift/output operator for outputstream. | |
std::istream & | operator>> (std::istream &stream, CDatN &cdat) |
Shift/read operator for inputstream. |
virtual CDatN::~CDatN | ( | ) | [inline, virtual] |
Default dtor.
- |
none |
CDatN::CDatN | ( | const CDatN & | other | ) | [inline] |
CDatN::CDatN | ( | const int | newval, | |
unsigned | width = 31 | |||
) | [inline] |
int CDatN::getValue | ( | ) | const [inline] |
CDatN::operator int | ( | ) | [inline] |
convert to int
- |
none |
bool CDatN::operator< | ( | const CDatN & | x | ) | const [inline] |
implementation of operator <
x | reference to CDatN |
none |
bool CDatN::operator== | ( | const CDatN & | x | ) | const [inline] |
implementation of operator ==
x | reference to CDatN |
none |
CDatN& CDatN::operator= | ( | const int & | newval | ) | [inline] |
implementation of operator =
newval | reference to int |
none |
CDatN& CDatN::operator++ | ( | ) | [inline] |
implementation of operator ++
- |
none |
CDatN& CDatN::operator-- | ( | ) | [inline] |
implementation of operator --
- |
none |
std::ostream& operator<< | ( | std::ostream & | stream, | |
CDatN | cdat | |||
) | [friend] |
Shift/output operator for outputstream.
stream | reference to outputstream | |
cdat | object which will be printed to stream |
none |
std::istream& operator>> | ( | std::istream & | stream, | |
CDatN & | cdat | |||
) | [friend] |
Shift/read operator for inputstream.
stream | reference to inputstream | |
cdat | reference to object which will be read from stream |
none |
int CDatN::m_value [protected] |
internal value of datatype
unsigned CDatN::m_width [protected] |
width of datatype