103 ZIVID_CORE_EXPORT std::string array2DToString(std::size_t width, std::size_t height);
117 template<
typename DataFormat>
171 return *(
data() + idx);
203 std::default_delete<DataFormat[]>()
208 std::size_t m_height;
209 std::shared_ptr<DataFormat> m_data;
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
Two-dimensional container of data
Definition: Array2D.h:119
friend class Array2DFactory
Definition: Array2D.h:194
const DataFormat & operator()(size_t i, size_t j) const
Constant reference to an element given by row and column
Definition: Array2D.h:182
const DataFormat & operator()(size_t idx) const
Constant reference to an element given by a 1D linear index
Definition: Array2D.h:169
size_t height() const
Get the height of the array (number of rows)
Definition: Array2D.h:137
const DataFormat * data() const
Pointer to the first data element of the array
Definition: Array2D.h:157
bool isEmpty() const
Check if the array is empty
Definition: Array2D.h:150
std::string toString() const
Get array information as string
Definition: Array2D.h:188
DataFormat ValueType
The type of the elements stored in the Array2D
Definition: Array2D.h:122
size_t size() const
Get the number of elements in the array
Definition: Array2D.h:144
size_t width() const
Get the width of the array (number of columns)
Definition: Array2D.h:131
Array2D()
Create an empty Array2D
Definition: Array2D.h:125
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99
std::ostream & operator<<(std::ostream &stream, const Array2D< T > &array)
Serialize array information to a stream
Definition: Array2D.h:214