Mech-Eye API 2.4.0
API reference documentation for Mech-Eye Industrial 3D Camera
|
Represents a 2D container of data. More...
#include <Array2D.h>
Public Member Functions | |
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. | |
Represents a 2D container of data.
|
inline |
|
inline |
|
inline |
Returns a reference to the element at the specified row and column in the Array2D object.
|
inline |
Returns a reference to the constant element at the specified row and column in the Array2D object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |