#include <CNCL/ArrayInt.h>
CN_ARRAYINT
CNArray
None
CNArrayObject, CNArrayChar, CNArrayDouble, CNArrayFLoat, CNArrayLong
CNArrayInt
manages arrays of integer (the builtin type
int
). CNArrayInt
is presented here as an example for all
CNArray
<type> classes. The interface is the same for
all classes only considering the different data types.
Constructors:
CNArrayInt();
CNArrayInt(Param *param);
CNArrayInt(size_t sz, int def=0);
sz
. All
elements are set to the default value def
.
CNArrayInt(const CNArrayInt &a);
Destructors:
~CNArrayInt();
In addition to the member functions required by CNCL, CNArrayInt
provides:
virtual void size(size_t sz = 0 );
void put (int index, int value);
int get (int index) const;
int& operator[] (int index);
operator []
.
CNArrayInt &operator= (const CNArrayInt &a);
operator =
for the array to allow copying of arrays.
Go to the first, previous, next, last section, table of contents.