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


Array Classes

The class CNArray and its derived classes provide arrays of different data types with array range checking. CNArrayObject manages pointers to CNObject. The other classes CNArray<type> manage arrays of standard data types.

The main purpose of these classes is to provide arrays with range checking, i.e. access to an array element outside the arrays bounds will terminate the program.

Range checking may be disabled by defining the preprocessor macro NO_RANGE_CHECK, e.g. by supplying -DNO_RANGE_CHECK on the compiler's command line.

Analogously to class CNArray, the classes CNArray2, CNArray3 and their derived classes provide 2-dimensional and 3-dimensional arrays of different data types with array range checking.


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