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

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


Detailed Description

template<class MAT>
class mrpt::math::CConstMatrixRowAccessor< MAT >

A vector-like wrapper for a const 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:
CConstMatrixColumnAccessor,CMatrixRowAccessorExtended,CMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 337 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

List of all members.

Public Types

typedef MAT::value_type value_type
typedef
CConstMatrixRowAccessor< MAT > 
mrpt_autotype
typedef
detail::AccessorIterator
< const
CConstMatrixRowAccessor< MAT >
, const value_type
const_iterator
typedef
detail::ReverseAccessorIterator
< const
CConstMatrixRowAccessor< MAT >
, const value_type
const_reverse_iterator

Public Member Functions

 CConstMatrixRowAccessor (const MAT &mat, size_t row)
 CConstMatrixRowAccessor ()
value_type operator[] (size_t i) const
const_iterator begin () const
const_iterator end () const
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
size_t size () const
void resize (size_t N)

Protected Attributes

const MAT * m_mat
size_t m_rowInd

Member Typedef Documentation

Definition at line 354 of file matrix_adaptors.h.

Definition at line 355 of file matrix_adaptors.h.

Definition at line 343 of file matrix_adaptors.h.

template<class MAT >
typedef MAT::value_type mrpt::math::CConstMatrixRowAccessor< MAT >::value_type

Definition at line 342 of file matrix_adaptors.h.


Constructor & Destructor Documentation

template<class MAT >
mrpt::math::CConstMatrixRowAccessor< MAT >::CConstMatrixRowAccessor ( const MAT &  mat,
size_t  row 
) [inline]

Definition at line 347 of file matrix_adaptors.h.

References ASSERT_.

template<class MAT >
mrpt::math::CConstMatrixRowAccessor< MAT >::CConstMatrixRowAccessor ( ) [inline]

Definition at line 350 of file matrix_adaptors.h.


Member Function Documentation

template<class MAT >
const_iterator mrpt::math::CConstMatrixRowAccessor< MAT >::begin ( ) const [inline]
template<class MAT >
const_iterator mrpt::math::CConstMatrixRowAccessor< MAT >::end ( ) const [inline]
template<class MAT >
value_type mrpt::math::CConstMatrixRowAccessor< MAT >::operator[] ( size_t  i) const [inline]
template<class MAT >
const_reverse_iterator mrpt::math::CConstMatrixRowAccessor< MAT >::rbegin ( ) const [inline]

Definition at line 362 of file matrix_adaptors.h.

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

template<class MAT >
const_reverse_iterator mrpt::math::CConstMatrixRowAccessor< MAT >::rend ( ) const [inline]

Definition at line 365 of file matrix_adaptors.h.

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

Definition at line 371 of file matrix_adaptors.h.

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

template<class MAT >
size_t mrpt::math::CConstMatrixRowAccessor< MAT >::size ( ) const [inline]

Definition at line 368 of file matrix_adaptors.h.

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


Member Data Documentation

template<class MAT >
const MAT* mrpt::math::CConstMatrixRowAccessor< MAT >::m_mat [protected]

Definition at line 339 of file matrix_adaptors.h.

template<class MAT >
size_t mrpt::math::CConstMatrixRowAccessor< MAT >::m_rowInd [protected]

Definition at line 340 of file matrix_adaptors.h.




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