MRPT logo

mrpt::math::CMatrixTemplateObjects< T > Class Template Reference

This template class extends the class "CMatrixTemplate" for storing "objects" at each matrix entry. More...

#include <mrpt/math/CMatrixTemplateObjects.h>

Inheritance diagram for mrpt::math::CMatrixTemplateObjects< T >:

mrpt::math::CMatrixTemplate< T * >

List of all members.

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.
CMatrixTemplateObjectsoperator= (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


Detailed Description

template<class T>
class mrpt::math::CMatrixTemplateObjects< T >

This template class extends the class "CMatrixTemplate" for storing "objects" at each matrix entry.

Remarks:

See also:
CMatrixTemplate

Definition at line 49 of file CMatrixTemplateObjects.h.


Constructor & Destructor Documentation

template<class T>
mrpt::math::CMatrixTemplateObjects< T >::CMatrixTemplateObjects ( const CMatrixTemplate< T > &  m  )  [inline]

Copy constructor.

Definition at line 57 of file CMatrixTemplateObjects.h.

template<class T>
mrpt::math::CMatrixTemplateObjects< T >::CMatrixTemplateObjects ( size_t  row = 3,
size_t  col = 3 
) [inline]

Constructor.

Definition at line 63 of file CMatrixTemplateObjects.h.

template<class T>
virtual mrpt::math::CMatrixTemplateObjects< T >::~CMatrixTemplateObjects (  )  [inline, virtual]


Member Function Documentation

template<class T>
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.

template<class T>
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().

template<class T>
CMatrixTemplateObjects& mrpt::math::CMatrixTemplateObjects< T >::operator= ( const CMatrixTemplateObjects< T > &  m  )  [inline]

template<class T>
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.

template<class T>
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().


Member Data Documentation

template<class T>
bool mrpt::math::CMatrixTemplateObjects< T >::m_freeObjects [private]




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN:exported at Mon Jan 12 13:00:16 UTC 2009