Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

CNArray3 Class Reference

The class CNArray3 is the base class of the CNArray<type> classes. More...

#include <Array3.h>

Inheritance diagram for CNArray3::

CNObject CNCL List of all members.

Public Methods

 CNArray3 ()
 Default Constructor.

 CNArray3 (CNParam *)
 Initializes with CNParam.

 CNArray3 (size_t r, size_t c, size_t d)
 Initializes CNArray3. More...

size_t get_rows () const
 Return number rows.

size_t get_cols () const
 Return number cols.

size_t get_depth () const
 Return depth.

size_t rows () const
 Return number of rows.

size_t cols () const
 Return number of cols.

size_t depth () const
 Return depth.

virtual void size (size_t r, size_t c, size_t d)=0
 Resize the array.

void set_size (size_t r, size_t c, size_t d)
 Sets size of array.

virtual CNClassDesc class_desc () const
 Returns the class description (pointer to instance of CNClass) for runtime type information.

virtual bool is_a (CNClassDesc desc) const
 Checks new type.

virtual void print (ostream &strm=cout) const=0
 Print output.

virtual void dump (ostream &strm=cout) const=0
 Debug output.


Static Public Methods

CNArray3 * cast_from_object (CNObject *obj)
 Safes type Cast.


Protected Methods

void range_error (int index) const
 Returns an error with index.

void range_error (int r, int c, int d) const
 Returns an out of range error.


Protected Attributes

size_t arows
 Parameters of rows, cols and depth.

size_t acols
 Parameters of rows, cols and depth.

size_t adepth
 Parameters of rows, cols and depth.


Detailed Description

The class CNArray3 is the base class of the CNArray<type> classes.

It defines the common interface.


Constructor & Destructor Documentation

CNArray3::CNArray3 size_t    r,
size_t    c,
size_t    d
[inline]
 

Initializes CNArray3.

The number of rows is r, the number of cols is c and the depth is set to d


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 19:54:14 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001