MRPT  1.9.9
mrpt::math::detail::ReverseAccessorIterator< A, T > Class Template Reference

Detailed Description

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

Template class for matrix accessor's iterators.

See also
CMatrixRowAccessor,CMatrixColumnAccessor

Definition at line 137 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

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

Protected Attributes

A * base
 
int pos
 

Member Typedef Documentation

◆ difference_type

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

Definition at line 147 of file matrix_adaptors.h.

◆ iterator_category

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

Definition at line 145 of file matrix_adaptors.h.

◆ pointer

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

Definition at line 148 of file matrix_adaptors.h.

◆ reference

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

Definition at line 149 of file matrix_adaptors.h.

◆ value_type

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

Definition at line 146 of file matrix_adaptors.h.

Constructor & Destructor Documentation

◆ ReverseAccessorIterator()

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

Definition at line 151 of file matrix_adaptors.h.

Member Function Documentation

◆ operator!=()

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

◆ operator*()

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

◆ operator+()

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

Definition at line 180 of file matrix_adaptors.h.

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

Definition at line 158 of file matrix_adaptors.h.

◆ operator+=()

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

◆ operator-() [1/2]

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

Definition at line 191 of file matrix_adaptors.h.

◆ operator-() [2/2]

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

◆ operator--() [1/2]

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

◆ operator--() [2/2]

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

Definition at line 169 of file matrix_adaptors.h.

◆ operator-=()

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

◆ operator==()

◆ operator[]()

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

Member Data Documentation

◆ base

◆ pos




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020