Main MRPT website > C++ reference for MRPT 1.5.5
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 247 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_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 269 of file matrix_adaptors.h.

Definition at line 271 of file matrix_adaptors.h.

Definition at line 268 of file matrix_adaptors.h.

Definition at line 256 of file matrix_adaptors.h.

Definition at line 270 of file matrix_adaptors.h.

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

Definition at line 255 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 257 of file matrix_adaptors.h.

References ASSERT_.

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

Definition at line 261 of file matrix_adaptors.h.

Member Function Documentation

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

Definition at line 272 of file matrix_adaptors.h.

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

Definition at line 275 of file matrix_adaptors.h.

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

Definition at line 278 of file matrix_adaptors.h.

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

Definition at line 281 of file matrix_adaptors.h.

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

Definition at line 284 of file matrix_adaptors.h.

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

Definition at line 287 of file matrix_adaptors.h.

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

Definition at line 290 of file matrix_adaptors.h.

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

Definition at line 293 of file matrix_adaptors.h.

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

Definition at line 299 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 296 of file matrix_adaptors.h.

Member Data Documentation

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

Definition at line 253 of file matrix_adaptors.h.

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

Definition at line 251 of file matrix_adaptors.h.

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

Definition at line 252 of file matrix_adaptors.h.

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

Definition at line 249 of file matrix_adaptors.h.

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

Definition at line 250 of file matrix_adaptors.h.




Page generated by Doxygen 1.8.6 for MRPT 1.5.5 Git: e06b63d Fri Dec 1 14:41:11 2017 +0100 at sáb dic 2 13:00:21 CET 2017