|
| Array2D () |
| Constructor.
|
|
| ~Array2D () |
| Describes a destructor.
|
|
size_t | width () const |
| Returns the width of the Array2D object.
|
|
size_t | height () const |
| Returns the height of the Array2D object.
|
|
bool | isEmpty () const |
| Returns true if the Array2D object has no elements.
|
|
const ElementData * | data () const |
| Returns the pointer to an element in the Array2D object. The returned pointer will be invalidated after resize or release is called.
|
|
ElementData * | data () |
| Returns the pointer to an element in the Array2D object. The returned pointer will be invalidated after resize or release is called.
|
|
const ElementData & | operator[] (std::size_t n) const |
| Returns a reference to the constant element with the specified index in the Array2D object using the operator [].
|
|
ElementData & | operator[] (std::size_t n) |
| Returns a reference to the constant element with the specified index in the Array2D object using the operator [].
|
|
const ElementData & | at (uint32_t row, uint32_t col) const |
| Returns a reference to the constant element at the specified row and column in the Array2D object.
|
|
ElementData & | at (uint32_t row, uint32_t col) |
| Returns a reference to the element at the specified row and column in the Array2D object.
|
|
Array2D< ElementData > | clone () const |
| Creates a deep copy of the Array2D object.
|
|
void | resize (size_t width, size_t height) |
| Changes the size of the Array2D object. It destroys the existing data and reallocates memory according to the new size, if the new size is different from the old size.
|
|
void | release () |
| Deallocates the data in the Array2D object.
|
|
template<typename ElementData>
class mmind::eye::Array2D< ElementData >
Represents a 2D container of data.
Definition at line 16 of file Array2D.h.