Go to the previous, next section.

Array Classes

The class CNArray and the 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.

Go to the previous, next section.