#include <CNCL/ArrayObject.h>
CN_ARRAYOBJECT
CNArray
None
CNArrayChar, CNArrayDouble, CNArrayFLoat, CNArrayInt, CNArrayLong
CNArrayObject
manages arrays of pointers to CNObject
.
Constructors:
CNArrayObject();
CNArrayObject(Param *param);
CNArrayObject(size_t sz, CNObjPtr def=0);
sz
. All
element pointers are initialized to NIL
or to def
.
CNArrayObject(const CNArrayObject &a);
Destructors:
~CNArrayObject();
In addition to the member functions required by CNCL, CNArrayObject
provides:
typedef CNObject *CNObjPtr;
virtual void size(size_t sz = 0 );
void put (int index, CNObjPtr value);
CNObjPtr get (int index) const;
CNObjPtr& operator[] (int index);
operator []
.
CNArrayObject &operator= (const CNArrayObject &a);
operator =
for the array to allow copying of arrays.
Go to the first, previous, next, last section, table of contents.