MRPT  2.0.0
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::math::CMatrixRowAccessor< MAT > Class Template Reference

Detailed Description

template<typename MAT>
class mrpt::math::CMatrixRowAccessor< MAT >

A vector-like wrapper for a Matrix for accessing the elements of a given row with a [] operator.

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

See also
CMatrixColumnAccessor,CMatrixRowAccessorExtended,CConstMatrixRowAccessor,CConstMatrixRowAccessorExtended

Definition at line 220 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

using value_type = typename MAT::Scalar
 
using mrpt_autotype = CMatrixRowAccessor< MAT >
 
using iterator = detail::AccessorIterator< CMatrixRowAccessor< MAT >, value_type >
 
using const_iterator = detail::AccessorIterator< const CMatrixRowAccessor< MAT >, const value_type >
 
using reverse_iterator = detail::ReverseAccessorIterator< CMatrixRowAccessor< MAT >, value_type >
 
using const_reverse_iterator = detail::ReverseAccessorIterator< const CMatrixRowAccessor< MAT >, const value_type >
 

Public Member Functions

 CMatrixRowAccessor (MAT &mat, size_t rowIdx)
 
 CMatrixRowAccessor ()
 
value_typeoperator[] (const size_t i)
 
value_type operator[] (const 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
 

Member Typedef Documentation

◆ const_iterator

template<typename MAT>
using mrpt::math::CMatrixRowAccessor< MAT >::const_iterator = detail::AccessorIterator< const CMatrixRowAccessor<MAT>, const value_type>

Definition at line 246 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 250 of file matrix_adaptors.h.

◆ iterator

Definition at line 244 of file matrix_adaptors.h.

◆ mrpt_autotype

template<typename MAT>
using mrpt::math::CMatrixRowAccessor< MAT >::mrpt_autotype = CMatrixRowAccessor<MAT>

Definition at line 228 of file matrix_adaptors.h.

◆ reverse_iterator

Definition at line 248 of file matrix_adaptors.h.

◆ value_type

template<typename MAT>
using mrpt::math::CMatrixRowAccessor< MAT >::value_type = typename MAT::Scalar

Definition at line 227 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CMatrixRowAccessor() [1/2]

template<typename MAT>
mrpt::math::CMatrixRowAccessor< MAT >::CMatrixRowAccessor ( MAT &  mat,
size_t  rowIdx 
)
inline

Definition at line 229 of file matrix_adaptors.h.

References ASSERT_.

◆ CMatrixRowAccessor() [2/2]

template<typename MAT>
mrpt::math::CMatrixRowAccessor< MAT >::CMatrixRowAccessor ( )
inline

Definition at line 234 of file matrix_adaptors.h.

Member Function Documentation

◆ begin() [1/2]

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::begin ( )
inline

Definition at line 251 of file matrix_adaptors.h.

◆ begin() [2/2]

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::begin ( ) const
inline

Definition at line 252 of file matrix_adaptors.h.

◆ end() [1/2]

template<typename MAT>
iterator mrpt::math::CMatrixRowAccessor< MAT >::end ( )
inline

Definition at line 253 of file matrix_adaptors.h.

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

◆ end() [2/2]

template<typename MAT>
const_iterator mrpt::math::CMatrixRowAccessor< MAT >::end ( ) const
inline

Definition at line 254 of file matrix_adaptors.h.

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

◆ operator[]() [1/2]

template<typename MAT>
value_type& mrpt::math::CMatrixRowAccessor< MAT >::operator[] ( const size_t  i)
inline

◆ operator[]() [2/2]

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

◆ rbegin() [1/2]

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin ( )
inline

Definition at line 258 of file matrix_adaptors.h.

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

◆ rbegin() [2/2]

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rbegin ( ) const
inline

Definition at line 262 of file matrix_adaptors.h.

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

◆ rend() [1/2]

template<typename MAT>
reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend ( )
inline

Definition at line 266 of file matrix_adaptors.h.

◆ rend() [2/2]

template<typename MAT>
const_reverse_iterator mrpt::math::CMatrixRowAccessor< MAT >::rend ( ) const
inline

Definition at line 267 of file matrix_adaptors.h.

◆ resize()

template<typename MAT>
void mrpt::math::CMatrixRowAccessor< MAT >::resize ( size_t  N)
inline

Definition at line 272 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::size ( ) const
inline

Definition at line 271 of file matrix_adaptors.h.

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

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

Here is the caller graph for this function:

Member Data Documentation

◆ m_mat

template<typename MAT>
MAT* mrpt::math::CMatrixRowAccessor< MAT >::m_mat
protected

◆ m_rowInd

template<typename MAT>
size_t mrpt::math::CMatrixRowAccessor< MAT >::m_rowInd
protected



Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020