Go to the previous, next section.

CNArray -- Abstract Array Base Class

SYNOPSIS

#include <CNCL/Array.h>

TYPE

CN_ARRAY

BASE CLASSES

CNObject

DERIVED CLASSES

CNArrayObject, CNArrayChar, CNArrayDouble, CNArrayFLoat, CNArrayInt, ...

RELATED CLASSES

None

DESCRIPTION

CNArray is the base class of the CNArray<type> classes. It defines the common interface.

Constructors:

CNArray();
CNArray(size_t xsize);
Initializes CNArray.

In addition to the member functions required by CNCL, CNArray provides:

size_t get_size() const;
size_t size() const;
Returns the size of the array.

void set_size(size_t sz = 0 );
virtual void size(size_t sz=0) = 0;
Sets the size of the array. The size-function must be implemented in the derived classes.

Go to the previous, next section.