#include <Array3.h>
Inheritance diagram for CNArray3::

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. | |
It defines the common interface.
|
||||||||||||||||
|
Initializes CNArray3. The number of rows is r, the number of cols is c and the depth is set to d |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001