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

◆ const_reverse_iterator

Definition at line 657 of file matrix_adaptors.h.

◆ mrpt_autotype

Definition at line 643 of file matrix_adaptors.h.

◆ value_type

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

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

References ASSERT_.

◆ CConstMatrixColumnAccessor() [2/2]

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

Definition at line 649 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 667 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.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST