Go to the documentation of this file.
9 #ifndef CMatrixTemplateObjects_H
10 #define CMatrixTemplateObjects_H
65 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
66 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
89 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
90 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
104 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
105 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
123 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
124 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
void freeAllObjects()
Delete all the objects in the matrix and set all entries to nullptr.
CMatrixTemplateObjects & operator=(const CMatrixTemplateObjects &m)
Assignment operator.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void setDestroyBehavior(bool freeObjects=true)
Sets the behavior on matrix destroy.
size_t rows() const
Number of rows in the matrix.
void allocAllObjects()
Alloc memory for all the non-NULL entries in the matrix.
void realloc(size_t row, size_t col, bool newElementsToZero=false)
Internal use only: It reallocs the memory for the 2D matrix, maintaining the previous contents if pos...
This template class extends the class "CMatrixTemplate" for storing "objects" at each matrix entry.
virtual void setSize(size_t row, size_t col)
Changes the size of matrix.
CMatrixTemplateObjects(const CMatrixTemplate< T > &m)
Copy constructor.
virtual ~CMatrixTemplateObjects()
Destructor.
CMatrixTemplateObjects(size_t row=3, size_t col=3)
Constructor.
GLenum GLenum GLvoid * row
size_t cols() const
Number of columns in the matrix.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |