Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | 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 296 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

typedef MAT::Scalar value_type
 
typedef CMatrixRowAccessorExtended< MAT > mrpt_autotype
 
typedef detail::AccessorIterator< CMatrixRowAccessorExtended< MAT >, value_typeiterator
 
typedef detail::AccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_typeconst_iterator
 
typedef detail::ReverseAccessorIterator< CMatrixRowAccessorExtended< MAT >, value_typereverse_iterator
 
typedef detail::ReverseAccessorIterator< const CMatrixRowAccessorExtended< MAT >, const value_typeconst_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

◆ const_iterator

Definition at line 332 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 338 of file matrix_adaptors.h.

◆ iterator

Definition at line 329 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 307 of file matrix_adaptors.h.

◆ reverse_iterator

Definition at line 335 of file matrix_adaptors.h.

◆ value_type

template<class MAT >
typedef MAT::Scalar mrpt::math::CMatrixRowAccessorExtended< MAT >::value_type

Definition at line 306 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CMatrixRowAccessorExtended() [1/2]

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

◆ CMatrixRowAccessorExtended() [2/2]

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

Definition at line 318 of file matrix_adaptors.h.

Member Function Documentation

◆ begin() [1/2]

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

Definition at line 339 of file matrix_adaptors.h.

◆ begin() [2/2]

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

Definition at line 340 of file matrix_adaptors.h.

◆ end() [1/2]

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

◆ end() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ rbegin() [1/2]

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

◆ rbegin() [2/2]

template<class MAT >
const_reverse_iterator mrpt::math::CMatrixRowAccessorExtended< MAT >::rbegin ( ) const
inline

◆ rend() [1/2]

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

Definition at line 351 of file matrix_adaptors.h.

◆ rend() [2/2]

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

Definition at line 352 of file matrix_adaptors.h.

◆ resize()

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

Definition at line 357 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

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

Definition at line 356 of file matrix_adaptors.h.

References mrpt::math::CMatrixRowAccessorExtended< MAT >::howMany.

Referenced by mrpt::math::CMatrixRowAccessorExtended< MAT >::resize().

Here is the caller graph for this function:

Member Data Documentation

◆ howMany

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

◆ m_colOffset

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

◆ m_elementsSpace

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

◆ m_mat

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

◆ m_rowInd

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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019