Go to the first, previous, next, last section, table of contents.


CNArray -- Abstract Base Class for 1-dimensional Arrays

SYNOPSIS

#include <CNCL/Array.h>

TYPE

CN_ARRAY

BASE CLASSES

CNObject

DERIVED CLASSES

CNArrayObject, CNArrayChar, CNArrayDouble, CNArrayFLoat, CNArrayInt, CNArrayLong

RELATED CLASSES

CNArray2, CNArray3

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 first, previous, next, last section, table of contents.