Clipper
|
Simple 2-d array class. More...
#include <clipper_types.h>
Public Member Functions | |
Array2d () | |
null constructor | |
Array2d (const int &d1, const int &d2) | |
constructor | |
Array2d (const int &d1, const int &d2, T val) | |
constructor | |
void | resize (const int &d1, const int &d2) |
resize | |
void | resize (const int &d1, const int &d2, const T &val) |
resize | |
int | size () const |
size | |
const int & | rows () const |
number of rows | |
const int & | cols () const |
number of cols | |
const T & | operator() (const int &i1, const int &i2) const |
read accessor | |
T & | operator() (const int &i1, const int &i2) |
write accessor | |
Protected Attributes | |
std::vector< T > | data |
int | d1_ |
int | d2_ |
Simple 2-d array class.