#include <mrpt/math/CMatrixTemplateObjects.h>
Public Member Functions | |
CMatrixTemplateObjects (const CMatrixTemplate< T > &m) | |
Copy constructor. | |
CMatrixTemplateObjects (size_t row=3, size_t col=3) | |
Constructor. | |
virtual void | setSize (size_t row, size_t col) |
Changes the size of matrix. | |
virtual | ~CMatrixTemplateObjects () |
Destructor. | |
void | freeAllObjects () |
Delete all the objects in the matrix and set all entries to NULL pointers. | |
CMatrixTemplateObjects & | operator= (const CMatrixTemplateObjects &m) |
Assignment operator. | |
void | setDestroyBehavior (bool freeObjects=true) |
Sets the behavior on matrix destroy. | |
void | allocAllObjects () |
Alloc memory for all the non-NULL entries in the matrix. | |
Private Attributes | |
bool | m_freeObjects |
Remarks:
Definition at line 49 of file CMatrixTemplateObjects.h.
mrpt::math::CMatrixTemplateObjects< T >::CMatrixTemplateObjects | ( | const CMatrixTemplate< T > & | m | ) | [inline] |
mrpt::math::CMatrixTemplateObjects< T >::CMatrixTemplateObjects | ( | size_t | row = 3 , |
|
size_t | col = 3 | |||
) | [inline] |
virtual mrpt::math::CMatrixTemplateObjects< T >::~CMatrixTemplateObjects | ( | ) | [inline, virtual] |
Destructor.
Definition at line 79 of file CMatrixTemplateObjects.h.
References mrpt::math::CMatrixTemplateObjects< T >::freeAllObjects(), and mrpt::math::CMatrixTemplateObjects< T >::m_freeObjects.
void mrpt::math::CMatrixTemplateObjects< T >::allocAllObjects | ( | ) | [inline] |
Alloc memory for all the non-NULL entries in the matrix.
See the general description of the class on the top.
Definition at line 121 of file CMatrixTemplateObjects.h.
void mrpt::math::CMatrixTemplateObjects< T >::freeAllObjects | ( | ) | [inline] |
Delete all the objects in the matrix and set all entries to NULL pointers.
Definition at line 87 of file CMatrixTemplateObjects.h.
Referenced by mrpt::math::CMatrixTemplateObjects< T >::~CMatrixTemplateObjects().
CMatrixTemplateObjects& mrpt::math::CMatrixTemplateObjects< T >::operator= | ( | const CMatrixTemplateObjects< T > & | m | ) | [inline] |
Assignment operator.
Definition at line 100 of file CMatrixTemplateObjects.h.
References mrpt::math::CMatrixTemplate< T >::getColCount(), mrpt::math::CMatrixTemplate< T >::getRowCount(), mrpt::math::CMatrixTemplate< T >::m_Val, and mrpt::math::CMatrixTemplate< T * >::realloc().
void mrpt::math::CMatrixTemplateObjects< T >::setDestroyBehavior | ( | bool | freeObjects = true |
) | [inline] |
Sets the behavior on matrix destroy.
See the general description of the class on the top.
Definition at line 113 of file CMatrixTemplateObjects.h.
References mrpt::math::CMatrixTemplateObjects< T >::m_freeObjects.
virtual void mrpt::math::CMatrixTemplateObjects< T >::setSize | ( | size_t | row, | |
size_t | col | |||
) | [inline, virtual] |
Changes the size of matrix.
Reimplemented from mrpt::math::CMatrixTemplate< T * >.
Definition at line 72 of file CMatrixTemplateObjects.h.
References mrpt::math::CMatrixTemplate< T * >::realloc().
bool mrpt::math::CMatrixTemplateObjects< T >::m_freeObjects [private] |
Definition at line 52 of file CMatrixTemplateObjects.h.
Referenced by mrpt::math::CMatrixTemplateObjects< T >::setDestroyBehavior(), and mrpt::math::CMatrixTemplateObjects< T >::~CMatrixTemplateObjects().
Page generated by Doxygen 1.5.7.1 for MRPT 0.6.5 SVN: at Mon Feb 23 13:25:04 EST 2009 |