#include <arr.h>
Inheritance diagram for arr2< T >:
Public Member Functions | |
arr2 () | |
arr2 (long sz1, long sz2) | |
arr2 (const arr2 &orig) | |
~arr2 () | |
long | size1 () const |
long | size2 () const |
long | size () const |
void | alloc (long sz1, long sz2) |
void | fast_alloc (long sz1, long sz2) |
void | dealloc () |
void | fill (const T &val) |
arr2 & | operator= (const arr2 &orig) |
T * | operator[] (long n) |
T * | operator[] (int n) |
const T * | operator[] (long n) const |
const T * | operator[] (int n) const |
void | minmax (T &minv, T &maxv) const |
void | swap (arr2 &other) |
Definition at line 181 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. sz1 or sz2 can be 0. If sz1*sz2 is the same as the currently allocated space, no reallocation is performed. |
|
Allocates space for an array with sz1*sz2 elements. The content of the array is undefined on exit. sz1 or sz2 can be 0. If sz1*sz2 is smaller than the currently allocated space, no reallocation is performed. |
|
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 the minimum and maximum entry in minv and maxv, respectively. Does nothing if the array is zero-sized. |
|
Swaps contents and sizes with other. |