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


CNArray3Double -- Array of Array of Array of Double

SYNOPSIS

#include <CNCL/Array3Double.h>

TYPE

CN_ARRAY3DOUBLE

BASE CLASSES

CNArray3

DERIVED CLASSES

None

RELATED CLASSES

CNArray3Char, CNArray3Float, CNArray3Int, CNArray3Long, CNArray3Object

DESCRIPTION

Constructors:

CNArray3Double();
CNArray3Double(CNParam *param);
CNArray3Double(size_t r, size_t c, size_t d, double def = 0);
Initializes the CNArray3Double and optionally sets the arraysize to r rows, c cols, and a depth of d.
CNArray3Double(const CNArray3Double &a);
Copy constructor.

Destructor:

~CNArray3Double();
Deletes the array.

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

virtual void size(size_t r, size_t c, size_t d);
Resizes the array to r rows, c cols, and a depth of d.
void put(int r, int c, int d, double value);
Writes the double value to position (r, c, d).
double get(int r, int c, int d) const;
Returns the double value written on position (r, c, d).
CNArray2Double& operator[] (int index);
Access to array by operator []. The row index is returned.
CNArray3Double &operator= (const CNArray3Double &a);
Defines the operator = for the array to allow copying of arrays.


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