9 #ifndef CMatrixTemplateObjects_H 10 #define CMatrixTemplateObjects_H 63 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
64 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
87 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
88 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
102 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
103 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
121 for (
size_t i = 0; i < CMatrixTemplate<T*>::rows(); i++)
122 for (
size_t j = 0; j < CMatrixTemplate<T*>::cols(); j++)
This base provides a set of functions for maths stuff.
size_t rows() const
Number of rows in the matrix.
virtual ~CMatrixTemplateObjects()
Destructor.
CMatrixTemplateObjects(const CMatrixTemplate< T > &m)
Copy constructor.
CMatrixTemplateObjects & operator=(const CMatrixTemplateObjects &m)
Assignment operator.
size_t cols() const
Number of columns in the matrix.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
void allocAllObjects()
Alloc memory for all the non-NULL entries in the matrix.
virtual void setSize(size_t row, size_t col)
Changes the size of matrix.
GLenum GLenum GLvoid * row
void freeAllObjects()
Delete all the objects in the matrix and set all entries to nullptr.
CMatrixTemplateObjects(size_t row=3, size_t col=3)
Constructor.
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...
void setDestroyBehavior(bool freeObjects=true)
Sets the behavior on matrix destroy.