MRPT logo

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

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator. More...

#include <mrpt/math/CMatrixTemplate.h>

List of all members.

Public Member Functions

 CMatrixRowAccessor (CMatrixTemplate< T > &mat, size_t rowIdx)
T & operator[] (const size_t i)
const T & operator[] (const size_t i) const

Protected Attributes

CMatrixTemplate< T > & m_mat
size_t m_rowInd

Detailed Description

template<typename T>
class mrpt::math::CMatrixRowAccessor< T >

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.

See also:
CMatrixColumnAccessor,CMatrixRowAccessorExtended,CConstMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 1290 of file CMatrixTemplate.h.


Constructor & Destructor Documentation

template<typename T >
mrpt::math::CMatrixRowAccessor< T >::CMatrixRowAccessor ( CMatrixTemplate< T > &  mat,
size_t  rowIdx 
) [inline]

Definition at line 1296 of file CMatrixTemplate.h.

References ASSERT_, and mrpt::math::CMatrixColumnAccessor< T >::m_mat.


Member Function Documentation

template<typename T >
const T& mrpt::math::CMatrixRowAccessor< T >::operator[] ( const size_t  i  )  const [inline]

Definition at line 1298 of file CMatrixTemplate.h.

References mrpt::math::CMatrixColumnAccessor< T >::m_mat.

template<typename T >
T& mrpt::math::CMatrixRowAccessor< T >::operator[] ( const size_t  i  )  [inline]

Definition at line 1297 of file CMatrixTemplate.h.

References mrpt::math::CMatrixColumnAccessor< T >::m_mat.


Member Data Documentation

template<typename T >
CMatrixTemplate<T>& mrpt::math::CMatrixRowAccessor< T >::m_mat [protected]

Definition at line 1293 of file CMatrixTemplate.h.

template<typename T >
size_t mrpt::math::CMatrixRowAccessor< T >::m_rowInd [protected]

Definition at line 1294 of file CMatrixTemplate.h.




Page generated by Doxygen 1.6.1 for MRPT 0.7.1 SVN: at Tue Dec 22 08:29:35 CET 2009