Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes

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


Detailed Description

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

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

For usage with MRPT's CMatrixTemplate only (for MRPT numeric matrices, use Eigen methods)

See also:
CMatrixColumnAccessor,CMatrixRowAccessorExtended,CConstMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 210 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

List of all members.

Public Types

typedef MAT::value_type value_type
typedef CMatrixRowAccessor< MAT > mrpt_autotype
typedef
detail::AccessorIterator
< CMatrixRowAccessor< MAT >
, value_type
iterator
typedef
detail::AccessorIterator
< const CMatrixRowAccessor
< MAT >, const value_type
const_iterator
typedef
detail::ReverseAccessorIterator
< CMatrixRowAccessor< MAT >
, value_type
reverse_iterator
typedef
detail::ReverseAccessorIterator
< const CMatrixRowAccessor
< MAT >, const value_type
const_reverse_iterator

Public Member Functions

 CMatrixRowAccessor (MAT &mat, size_t rowIdx)
 CMatrixRowAccessor ()
value_typeoperator[] (const size_t i)
value_type operator[] (const size_t i) const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
size_t size () const
void resize (size_t N)

Protected Attributes

MAT * m_mat
size_t m_rowInd

Member Typedef Documentation

Definition at line 226 of file matrix_adaptors.h.

Definition at line 228 of file matrix_adaptors.h.

Definition at line 225 of file matrix_adaptors.h.

template<typename MAT>
typedef CMatrixRowAccessor<MAT> mrpt::math::CMatrixRowAccessor< MAT >::mrpt_autotype

Definition at line 217 of file matrix_adaptors.h.

Definition at line 227 of file matrix_adaptors.h.

template<typename MAT>
typedef MAT::value_type mrpt::math::CMatrixRowAccessor< MAT >::value_type

Definition at line 216 of file matrix_adaptors.h.


Constructor & Destructor Documentation

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

Definition at line 221 of file matrix_adaptors.h.

References ASSERT_.

template<typename MAT>
mrpt::math::CMatrixRowAccessor< MAT >::CMatrixRowAccessor ( ) [inline]

Definition at line 222 of file matrix_adaptors.h.


Member Function Documentation

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::begin ( ) [inline]

Definition at line 229 of file matrix_adaptors.h.

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::begin ( ) const [inline]

Definition at line 232 of file matrix_adaptors.h.

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::end ( ) [inline]

Definition at line 235 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::end ( ) const [inline]

Definition at line 238 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.

template<typename MAT>
value_type mrpt::math::CMatrixRowAccessor< MAT >::operator[] ( const size_t  i) const [inline]
template<typename MAT>
value_type& mrpt::math::CMatrixRowAccessor< MAT >::operator[] ( const size_t  i) [inline]
template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin ( ) const [inline]

Definition at line 244 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin ( ) [inline]

Definition at line 241 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor< MAT >::m_mat.

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend ( ) const [inline]

Definition at line 250 of file matrix_adaptors.h.

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend ( ) [inline]

Definition at line 247 of file matrix_adaptors.h.

template<typename MAT>
void mrpt::math::CMatrixRowAccessor< MAT >::resize ( size_t  N) [inline]

Definition at line 256 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor< MAT >::size().

template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::size ( ) const [inline]

Member Data Documentation

template<typename MAT>
MAT* mrpt::math::CMatrixRowAccessor< MAT >::m_mat [protected]
template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd [protected]



Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011