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

Detailed Description

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

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

See also
CConstMatrixRowAccessor,CMatrixColumnAccessorExtended,CMatrixColumnAccessor,CConstMatrixColumnAccessorExtended

Definition at line 634 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

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

Public Member Functions

 CConstMatrixColumnAccessor (const MAT &mat, size_t colIdx)
 
 CConstMatrixColumnAccessor ()
 
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_colInd
 

Member Typedef Documentation

◆ const_iterator

Definition at line 654 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 656 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 642 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 641 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ CConstMatrixColumnAccessor() [1/2]

template<class MAT>
mrpt::math::CConstMatrixColumnAccessor< MAT >::CConstMatrixColumnAccessor ( const MAT &  mat,
size_t  colIdx 
)
inline

Definition at line 643 of file matrix_adaptors.h.

References ASSERT_.

◆ CConstMatrixColumnAccessor() [2/2]

Definition at line 648 of file matrix_adaptors.h.

Member Function Documentation

◆ begin()

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

Definition at line 657 of file matrix_adaptors.h.

Referenced by mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationTo().

Here is the caller graph for this function:

◆ end()

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

Definition at line 658 of file matrix_adaptors.h.

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

Referenced by mrpt::math::CBinaryRelation< T, U, UIsObject >::getRelationTo().

Here is the caller graph for this function:

◆ operator[]()

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

◆ rbegin()

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

◆ rend()

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

Definition at line 666 of file matrix_adaptors.h.

◆ resize()

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

Definition at line 671 of file matrix_adaptors.h.

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

Here is the call graph for this function:

◆ size()

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

Definition at line 670 of file matrix_adaptors.h.

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

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

Here is the caller graph for this function:

Member Data Documentation

◆ m_colInd

template<class MAT>
size_t mrpt::math::CConstMatrixColumnAccessor< MAT >::m_colInd
protected

◆ m_mat

template<class MAT>
const MAT* mrpt::math::CConstMatrixColumnAccessor< MAT >::m_mat
protected



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020