#include <CNCL/Int.h>
CN_INT
CNObject
None
CNDouble
This class provides a long int value derived from CNObject. Such it combines
the behavior of the builtin type long int with the possibility to use this
type with generic containers (like CNDLList) or as parameters to CNEvents
and SDLSignals.
Note: CNInt consumes much more memory than an ordinary long int. Therefore
it isn't a good idea to create large arrays of CNInts when one doesn't need
its special capabilities.
Constructors:
CNInt(long n=0);
CNInt(CNParam *param);
Int
with the value n (default = 0).
In addition to the member functions required by CNCL, CNInt
provides:
operator long()
CNInt
in calculations.
long operator ++()
long operator ++(int)
long operator --()
long operator --(int)
long operator -()
long operator +()
long operator +=(long n)
long operator -=(long n)
long operator *=(long n)
long operator /=(long n)
long operator %=(long n)
CNInt
is on the left and on the right side
of an equation.
long operator ^=(long n)
long operator |=(long n)
long operator &=(long n)
long operator !=(long n)
CNInt
is on the left and on the right side
of an equation.
long operator <<=(long n)
long operator >>=(long n)
CNInt
.
Note: unary * and & operators aren't overloaded.
Go to the first, previous, next, last section, table of contents.