Main MRPT website > C++ reference for MRPT 1.5.6
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 521 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

typedef MAT::Scalar value_type
 
typedef CConstMatrixColumnAccessor< MAT > mrpt_autotype
 
typedef detail::AccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_typeconst_iterator
 
typedef detail::ReverseAccessorIterator< const CConstMatrixColumnAccessor< MAT >, const value_typeconst_reverse_iterator
 

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 535 of file matrix_adaptors.h.

◆ const_reverse_iterator

Definition at line 536 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 527 of file matrix_adaptors.h.

◆ value_type

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

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

References ASSERT_.

◆ CConstMatrixColumnAccessor() [2/2]

Definition at line 531 of file matrix_adaptors.h.

Member Function Documentation

◆ begin()

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

◆ end()

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

◆ 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 546 of file matrix_adaptors.h.

◆ resize()

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

◆ size()

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

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 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019