#include <containers.h>
Public Member Functions | |
Array2d () | |
Array2d (size_t dim1, size_t dim2) | |
Array2d (size_t dim1, size_t dim2, const T &Value) | |
Array2d (const Array2d< T > &a) | |
~Array2d () | |
Array2d< T > & | operator= (const Array2d< T > &a) |
Array< T > & | operator[] (size_t pos) |
const Array< T > & | operator[] (size_t pos) const |
size_t | dim1 () const |
size_t | dim2 () const |
size_t | size () const |
void | resize (size_t dim1, size_t dim2, const T &val=T()) |
The storage and indexing as described below is described in row-column order, i.e. dim1 are the rows, dim2 are the columns.
|
Create empty 2D array. |
|
Destructor |
|
Returns the number of rows in this 2D array |
|
Returns the size of the rows in this 2D array, i.e. the number of columns |
|
Returns the total number of elements in this 2D array. |