9 namespace datastructure {
50 : num_rows(0), num_cols(0) {
63 : num_rows(rows), num_cols(cols) {
64 int dims[] = {cols, rows, 1};
int row
Definition: Array2D.h:127
This is the fundamental building block for all data structures in BRIDGES.
Definition: Element.h:52
E & operator[](int col)
Definition: Array2D.h:114
int getNumRows()
Definition: Array2D.h:71
void setElement(int row, int col, Element< E > el)
Definition: Array2D.h:104
Element< E > & getElement(int row, int col)
Definition: Array2D.h:92
helper class to make [][] operators work on array 2d. You should never use it directly ...
Definition: Array2D.h:125
helper class to make [][] operators work on array 2d. You should never use it directly ...
Definition: Array2D.h:109
The foundation of BRIDGES array types. It is not meant to be used directly by students.
Definition: Array.h:21
Array2D< E > const & arr
Definition: Array2D.h:126
Bracket_helper_const(Array2D< E > &a, int r)
Definition: Array2D.h:128
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setSize(int nd, int *dim)
Set the size of the array.
Definition: Array.h:57
int getNumColumns()
Gets the number of columns of the 2D array.
Definition: Array2D.h:79
Bracket_helper(Array2D< E > &a, int r)
Definition: Array2D.h:112
int row
Definition: Array2D.h:111
A BRIDGES array type.
Definition: Array2D.h:43
Array2D< E > & arr
Definition: Array2D.h:110
Array2D(int rows, int cols)
builds an array of given dimensions
Definition: Array2D.h:62
Element< E > & getElement(int index)
Definition: Array.h:108
virtual ~Array2D()
Definition: Array2D.h:54