#include <arr.h>
Public Member Functions | |
arr2b () | |
arr2b (long sz1, long sz2) | |
arr2b (const arr2b &orig) | |
~arr2b () | |
long | size1 () const |
long | size2 () const |
long | size () const |
void | alloc (long sz1, long sz2) |
void | dealloc () |
void | fill (const T &val) |
arr2b & | operator= (const arr2b &orig) |
T * | operator[] (long n) |
T * | operator[] (int n) |
const T * | operator[] (long n) const |
const T * | operator[] (int n) const |
operator T ** () |
Definition at line 298 of file arr.h.
|
Creates a zero-sized array. |
|
Creates an array with the dimensions sz1 and sz2. |
|
Creates the array as a copy of orig. |
|
Frees the memory associated with the array. |
|
Returns the first array dimension. |
|
Returns the second array dimension. |
|
Returns the total array size, i.e. the product of both dimensions. |
|
Allocates space for an array with sz1*sz2 elements. The content of the array is undefined on exit. |
|
Deallocates the space and makes the array zero-sized. |
|
Sets all array elements to val. |
|
Changes the array to be a copy of orig. |
|
Returns a pointer to the beginning of slice #n. |
|
Returns a pointer to the beginning of slice #n. |
|
Returns a constant pointer to the beginning of slice #n. |
|
Returns a constant pointer to the beginning of slice #n. |
|
Returns a pointer to the beginning of the pointer array. |