Go to the previous, next section.

CNArray2 -- Base class for 2-dimensional arrays

SYNOPSIS

#include <CNCL/Array2.h >

TYPE

CN_ARRAY2

BASE CLASSES

CNObject

DERIVED CLASSES

CNArray2Char, CNArray2Double, CNArray2Float, CNArray2Int, CNArray2Long, CNArray2Object

RELATED CLASSES

CNArray

DESCRIPTION

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

Constructors:

CNArray2();
CNArray2(Param *param);
CNArray2(size_t r, size_t c);
Initializes CNArray2.The number of rows is r, the number of cols c.

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

size_t get_rows() const;
size_t rows() const;
size_t get_cols() const;
size_t cols() const;

Returns the number of rows resp. cols.

virtual void size(size_t r, size_t c) = 0;
void set_size(size_t r, size_t c);

Resizes the array.

Go to the previous, next section.