25 #ifndef UQ_2D_ARRAY_OF_STUFF_H
26 #define UQ_2D_ARRAY_OF_STUFF_H
62 void setLocation(
unsigned int i,
unsigned int j, T* info);
75 const T&
operator ()(
unsigned int i,
unsigned int j)
const;
81 std::vector<std::vector<T*>* >
m_data;
86 #endif // UQ_2D_ARRAY_OF_STUFF_H
Class for handling arrays of generic data.
TwoDArray(unsigned int numRows, unsigned int numCols)
Default constructor.
unsigned int numCols() const
Number of columns in the array.
std::vector< std::vector< T * > * > m_data
T & operator()(unsigned int i, unsigned int j)
Returns data stored in a specific location (non-const).
void setLocation(unsigned int i, unsigned int j, T *info)
Sets the data in a specific location.
unsigned int numRows() const
Number of rows in the array.