|
| Array2D (const T *data, std::size_t nRows, std::size_t nCols) |
|
| Array2D (std::size_t nRows, std::size_t nCols) |
|
template<typename S > |
Array2DRow< T, runtimeCheck > | operator[] (S index) |
|
T & | get (std::size_t row, std::size_t column) |
|
| ImmutableArray2D (const boost::shared_array< T > &data, std::size_t nRows, std::size_t nCols) |
|
| ImmutableArray2D (const T *data, std::size_t nRows, std::size_t nCols) |
|
| ImmutableArray2D (const ImmutableArray2D< T, runtimeCheck > &other) |
|
ImmutableArray2D< T > & | operator= (const ImmutableArray2D< T > &other) |
|
Array2D< T, runtimeCheck > | getMutable () const |
|
std::size_t | getNumberOfRows () const |
|
std::size_t | getNumberOfColumns () const |
|
std::size_t | getNumberOfElements () const |
|
bool | hasOwnData () const |
|
template<typename S > |
const Array2DRow< T, runtimeCheck > | operator[] (S index) const |
|
const T & | get (std::size_t row, std::size_t column) const |
|
| operator const T * () const |
|
| operator const void * () const |
|
template<typename T, bool runtimeCheck = true>
class fesa::Array2D< T, runtimeCheck >
A wrapper class for 2-dimensional arrays. An Array2D has always its own copy of the data. Consequently, the data passed to its constructor can be safely destroyed. An Array2D also provides a subscript operator which allows modification of the data.
- Template Parameters
-
T | Type of the elements |
runtimeCheck | whether to check index boundaries at runtime |