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


CNArray3<type> -- 3-dimensional Arrays of other <Type>s

DESCRIPTION

CNCL currently provides 3 dimensional array classes for the data types char, double, float, int, long, and CNObject * with the classes CNArray3Char, CNArray3Double, CNArray3Float, CNArray3Int, CNArray3Long, and CNArray3Object respectively. The description of those classes is similar to CNArray3Double.

All CNCL compatible objects can be stored in a CNArray3Object, thus that there is no need for specialized array types.

Nevertheless it is possible to generate arrays of other data types with the CNarray3 script.

Usage:

CNarray3 name

The required parameter is the name of the data type. CNarray3 generates two files Array3Name.h and Array3Name.c with the definition and implementation of the desired array class.

Please note that name must be a single word, pointers and references are not allowed, either. If you need an array of pointers or e.g. an array of unsigned long, you can use an appropiate typedef:

typedef unsigned long ulong;
typedef Data *DataP;

and then generate an array

CNarray3 ulong
CNarray3 DataP

yielding the classes CNArray3Ulong and CNArray3DataP.


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