DGtal 1.4.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 69 of file ReverseIterator.h.
|
private |
Definition at line 73 of file ReverseIterator.h.
typedef IteratorCirculatorTraits<Iterator>::Type DGtal::ReverseIterator< Iterator >::Type |
Definition at line 79 of file ReverseIterator.h.
|
inline |
Definition at line 81 of file ReverseIterator.h.
|
inlineexplicit |
Definition at line 83 of file ReverseIterator.h.
|
inline |
Definition at line 87 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 100 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 98 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 95 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 107 of file ReverseIterator.h.
|
inlineprivate |
Definition at line 97 of file ReverseIterator.h.
|
friend |
Definition at line 75 of file ReverseIterator.h.