DGtal 1.3.0
|
This class adapts any bidirectional iterator so that operator++ calls operator-- and vice versa. More...
#include <DGtal/base/ReverseIterator.h>
Public Types | |
typedef IteratorCirculatorTraits< Iterator >::Type | Type |
Public Member Functions | |
ReverseIterator () | |
ReverseIterator (Iterator x) | |
template<class OtherIterator > | |
ReverseIterator (ReverseIterator< OtherIterator > const &r, typename boost::enable_if_convertible< OtherIterator, Iterator >::type *=0) | |
Private Types | |
typedef boost::iterator_adaptor< ReverseIterator< Iterator >, Iterator > | super_t |
Private Member Functions | |
super_t::reference | dereference () const |
void | increment () |
void | decrement () |
void | advance (typename super_t::difference_type n) |
template<class OtherIterator > | |
super_t::difference_type | distance_to (ReverseIterator< OtherIterator > const &y) const |
Friends | |
class | boost::iterator_core_access |
This class adapts any bidirectional iterator so that operator++ calls operator-- and vice versa.
Description of template class 'ReverseIterator'
Iterator | the type of the iterator to adapt, a model of bidirectional iterator |
NB: adapted from boost/iterator/ReverseIterator.hpp
Definition at line 68 of file ReverseIterator.h.
|
private |
Definition at line 72 of file ReverseIterator.h.
typedef IteratorCirculatorTraits<Iterator>::Type DGtal::ReverseIterator< Iterator >::Type |
Definition at line 78 of file ReverseIterator.h.
|
inline |
Definition at line 80 of file ReverseIterator.h.
|
inlineexplicit |
Definition at line 82 of file ReverseIterator.h.
|
inline |
Definition at line 86 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 99 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 97 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 94 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 106 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 96 of file ReverseIterator.h.
|
friend |
Definition at line 74 of file ReverseIterator.h.