Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
mrpt::math::CConstMatrixRowAccessor Class Reference

Detailed Description

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

#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.

Definition at line 342 of file matrix_adaptors.h.


Constructor & Destructor Documentation

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

Definition at line 347 of file matrix_adaptors.h.

References ASSERT_.

mrpt::math::CConstMatrixRowAccessor::CConstMatrixRowAccessor ( ) [inline]

Definition at line 350 of file matrix_adaptors.h.


Member Function Documentation

const_iterator mrpt::math::CConstMatrixRowAccessor::begin ( ) const [inline]

Definition at line 356 of file matrix_adaptors.h.

Referenced by mrpt::math::CBinaryRelation::getRelationFrom().

const_iterator mrpt::math::CConstMatrixRowAccessor::end ( ) const [inline]
value_type mrpt::math::CConstMatrixRowAccessor::operator[] ( size_t  i) const [inline]
const_reverse_iterator mrpt::math::CConstMatrixRowAccessor::rbegin ( ) const [inline]

Definition at line 362 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor::m_mat.

const_reverse_iterator mrpt::math::CConstMatrixRowAccessor::rend ( ) const [inline]

Definition at line 365 of file matrix_adaptors.h.

void mrpt::math::CConstMatrixRowAccessor::resize ( size_t  N) [inline]

Definition at line 371 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor::size().

size_t mrpt::math::CConstMatrixRowAccessor::size ( ) const [inline]

Definition at line 368 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessor::m_mat.


Member Data Documentation

Definition at line 339 of file matrix_adaptors.h.

Definition at line 340 of file matrix_adaptors.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011