MRPT  2.0.4
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::math::detail::AccessorIterator< A, T > Class Template Reference

Detailed Description

template<typename A, typename T>
class mrpt::math::detail::AccessorIterator< A, T >

Template class for matrix accessor's iterators.

See also
CMatrixRowAccessor,CMatrixColumnAccessor

Definition at line 57 of file matrix_adaptors.h.

#include <mrpt/math/matrix_adaptors.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = T
 
using difference_type = int
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 AccessorIterator (A &obj, size_t N)
 
T & operator* () const
 
AccessorIterator< A, T > & operator++ ()
 
AccessorIterator< A, T > operator++ (int)
 
AccessorIterator< A, T > & operator-- ()
 
AccessorIterator< A, T > operator-- (int)
 
AccessorIterator< A, T > & operator+= (int off)
 
AccessorIterator< A, T > operator+ (int off) const
 
AccessorIterator< A, T > & operator-= (int off)
 
AccessorIterator< A, T > operator- (int off) const
 
int operator- (const AccessorIterator< A, T > &it) const
 
T & operator[] (int off) const
 
bool operator== (const AccessorIterator< A, T > &it) const
 
bool operator!= (const AccessorIterator< A, T > &it) const
 

Protected Attributes

Abase
 
int pos
 

Member Typedef Documentation

◆ difference_type

template<typename A, typename T>
using mrpt::math::detail::AccessorIterator< A, T >::difference_type = int

Definition at line 67 of file matrix_adaptors.h.

◆ iterator_category

template<typename A, typename T>
using mrpt::math::detail::AccessorIterator< A, T >::iterator_category = std::random_access_iterator_tag

Definition at line 65 of file matrix_adaptors.h.

◆ pointer

template<typename A, typename T>
using mrpt::math::detail::AccessorIterator< A, T >::pointer = T*

Definition at line 68 of file matrix_adaptors.h.

◆ reference

template<typename A, typename T>
using mrpt::math::detail::AccessorIterator< A, T >::reference = T&

Definition at line 69 of file matrix_adaptors.h.

◆ value_type

template<typename A, typename T>
using mrpt::math::detail::AccessorIterator< A, T >::value_type = T

Definition at line 66 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ AccessorIterator()

template<typename A, typename T>
mrpt::math::detail::AccessorIterator< A, T >::AccessorIterator ( A obj,
size_t  N 
)
inline

Definition at line 71 of file matrix_adaptors.h.

Member Function Documentation

◆ operator!=()

template<typename A, typename T>
bool mrpt::math::detail::AccessorIterator< A, T >::operator!= ( const AccessorIterator< A, T > &  it) const
inline

Definition at line 126 of file matrix_adaptors.h.

References mrpt::math::detail::AccessorIterator< A, T >::operator==().

Here is the call graph for this function:

◆ operator*()

template<typename A, typename T>
T& mrpt::math::detail::AccessorIterator< A, T >::operator* ( void  ) const
inline

◆ operator+()

template<typename A, typename T>
AccessorIterator<A, T> mrpt::math::detail::AccessorIterator< A, T >::operator+ ( int  off) const
inline

Definition at line 100 of file matrix_adaptors.h.

◆ operator++() [1/2]

template<typename A, typename T>
AccessorIterator<A, T>& mrpt::math::detail::AccessorIterator< A, T >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename A, typename T>
AccessorIterator<A, T> mrpt::math::detail::AccessorIterator< A, T >::operator++ ( int  )
inline

Definition at line 78 of file matrix_adaptors.h.

◆ operator+=()

template<typename A, typename T>
AccessorIterator<A, T>& mrpt::math::detail::AccessorIterator< A, T >::operator+= ( int  off)
inline

◆ operator-() [1/2]

template<typename A, typename T>
AccessorIterator<A, T> mrpt::math::detail::AccessorIterator< A, T >::operator- ( int  off) const
inline

Definition at line 111 of file matrix_adaptors.h.

◆ operator-() [2/2]

template<typename A, typename T>
int mrpt::math::detail::AccessorIterator< A, T >::operator- ( const AccessorIterator< A, T > &  it) const
inline

◆ operator--() [1/2]

template<typename A, typename T>
AccessorIterator<A, T>& mrpt::math::detail::AccessorIterator< A, T >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename A, typename T>
AccessorIterator<A, T> mrpt::math::detail::AccessorIterator< A, T >::operator-- ( int  )
inline

Definition at line 89 of file matrix_adaptors.h.

◆ operator-=()

template<typename A, typename T>
AccessorIterator<A, T>& mrpt::math::detail::AccessorIterator< A, T >::operator-= ( int  off)
inline

◆ operator==()

template<typename A, typename T>
bool mrpt::math::detail::AccessorIterator< A, T >::operator== ( const AccessorIterator< A, T > &  it) const
inline

Definition at line 122 of file matrix_adaptors.h.

References mrpt::math::detail::AccessorIterator< A, T >::base, and mrpt::math::detail::AccessorIterator< A, T >::pos.

Referenced by mrpt::math::detail::AccessorIterator< A, T >::operator!=().

Here is the caller graph for this function:

◆ operator[]()

template<typename A, typename T>
T& mrpt::math::detail::AccessorIterator< A, T >::operator[] ( int  off) const
inline

Member Data Documentation

◆ base

template<typename A, typename T>
A* mrpt::math::detail::AccessorIterator< A, T >::base
protected

◆ pos

template<typename A, typename T>
int mrpt::math::detail::AccessorIterator< A, T >::pos
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