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


CNArray3 -- Abstract Base class of 3-dimensional Arrays

SYNOPSIS

#include <CNCL/Array3.h >

TYPE

CN_ARRAY3

BASE CLASSES

CNObject

DERIVED CLASSES

CNArray3Char, CNArray3Double, CNArray3Float, CNArray3Int, CNArray3Long, CNArray3Object

RELATED CLASSES

CNArray, CNArray2

DESCRIPTION

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

Constructors:

CNArray3();
CNArray3(Param *param);
CNArray3(size_t r, size_t c, size_t d);
Initializes CNArray3. The number of rows is r, the number of cols c, and the depth is set to d.

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

size_t get_rows() const;
size_t rows() const;
size_t get_cols() const;
size_t cols() const;
size_t get_depth() const;
size_t depth() const;
Returns the depth of the array and the number of rows resp. cols.
virtual void size(size_t r, size_t c, size_t d) = 0;
void set_size(size_t r, size_t c, size_t d);
Resizes the array.


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