35 Type(
size_t _nbRows,
size_t _nbCols,
ScalarType const &_elementDataType)
36 : nbRows(_nbRows), nbCols(_nbCols), elementDataType(_elementDataType) {}
37 size_t GetSize()
const {
38 return nbRows * nbCols * elementDataType.GetSize();
40 std::string GetDescription()
const {
return "matrix"; }
41 size_t GetNbRows()
const {
return nbRows; }
42 size_t GetNbCols()
const {
return nbCols; }
43 ScalarType const &GetElementDataType()
const {
return elementDataType; }
46 size_t nbRows, nbCols;
65 ScalarType const &elementDataType, std::string name =
"",
82 Matrix(
const Object *parent, uint32_t rows, uint32_t cols,
83 ScalarType const &elementDataType, std::string name =
"",
102 float Value(uint32_t row, uint32_t col)
const;
128 void SetValue(uint32_t row, uint32_t col,
float value);
154 std::string
Name(uint32_t row, uint32_t col)
const;
186 uint32_t
Rows(
void)
const;
193 uint32_t
Cols(
void)
const;
195 Type const &GetDataType()
const {
return dataType; };
217 class Matrix_impl *pimpl_;
Abstract class for data types.
Definition: io_data.h:94
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
void SetValue(uint32_t row, uint32_t col, float value)
Set element value.
uint32_t Cols(void) const
Number of colomns.
IODataElement * Element(uint32_t row, uint32_t col) const
Element.
Abstract class for data types.
Class describing cvmatrix elements, for log and graphs purpose.
Definition: cvmatrix_descriptor.h:28
float ValueNoMutex(uint32_t row, uint32_t col) const
Element value.
float Value(uint32_t row, uint32_t col) const
Element value.
std::string Name(uint32_t row, uint32_t col) const
Element name.
Abstract class for accessing an element of an io_data.
Class describing cvmatrix elements, for log and graphs purpose.
void RawWrite(char *src)
Raw write datas.
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
void SetValueNoMutex(uint32_t row, uint32_t col, float value)
Set element value.
void RawRead(char *dst) const
Raw read datas.
Matrix(const Object *parent, const cvmatrix_descriptor *descriptor, ScalarType const &elementDataType, std::string name="", uint32_t n=1)
Constructor.
Class defining a matrix.
Definition: Matrix.h:31
uint32_t Rows(void) const
Number of rows.