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

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


Detailed Description

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

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator, with offset and custom spacing.

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

See also:
CMatrixColumnAccessorExtended,CMatrixRowAccessor,CConstMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 269 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

List of all members.

Public Types

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

Public Member Functions

 CMatrixRowAccessorExtended (MAT &mat, size_t row, size_t offset, size_t space)
 CMatrixRowAccessorExtended ()
value_typeoperator[] (size_t i)
value_type operator[] (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
size_t m_colOffset
size_t m_elementsSpace
size_t howMany

Member Typedef Documentation

Definition at line 294 of file matrix_adaptors.h.

Definition at line 296 of file matrix_adaptors.h.

Definition at line 293 of file matrix_adaptors.h.

Definition at line 278 of file matrix_adaptors.h.

Definition at line 295 of file matrix_adaptors.h.

Definition at line 277 of file matrix_adaptors.h.


Constructor & Destructor Documentation

template<class MAT >
mrpt::math::CMatrixRowAccessorExtended< MAT >::CMatrixRowAccessorExtended ( MAT &  mat,
size_t  row,
size_t  offset,
size_t  space 
) [inline]

Definition at line 282 of file matrix_adaptors.h.

References ASSERT_.

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

Definition at line 286 of file matrix_adaptors.h.


Member Function Documentation

template<class MAT >
iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::begin ( ) [inline]

Definition at line 297 of file matrix_adaptors.h.

template<class MAT >
const_iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::begin ( ) const [inline]

Definition at line 300 of file matrix_adaptors.h.

template<class MAT >
iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::end ( ) [inline]

Definition at line 303 of file matrix_adaptors.h.

template<class MAT >
const_iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::end ( ) const [inline]

Definition at line 306 of file matrix_adaptors.h.

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

Definition at line 312 of file matrix_adaptors.h.

template<class MAT >
reverse_iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::rbegin ( ) [inline]

Definition at line 309 of file matrix_adaptors.h.

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

Definition at line 318 of file matrix_adaptors.h.

template<class MAT >
reverse_iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::rend ( ) [inline]

Definition at line 315 of file matrix_adaptors.h.

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

Definition at line 324 of file matrix_adaptors.h.

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

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

Definition at line 321 of file matrix_adaptors.h.


Member Data Documentation

template<class MAT >
size_t mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany [protected]

Definition at line 275 of file matrix_adaptors.h.

template<class MAT >
size_t mrpt::math::CMatrixRowAccessorExtended< MAT >::m_colOffset [protected]

Definition at line 273 of file matrix_adaptors.h.

template<class MAT >
size_t mrpt::math::CMatrixRowAccessorExtended< MAT >::m_elementsSpace [protected]

Definition at line 274 of file matrix_adaptors.h.

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

Definition at line 271 of file matrix_adaptors.h.

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

Definition at line 272 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