DGtal
1.5.beta
|
Reverse iterator for HyperRectDomain. More...
#include <DGtal/kernel/domains/HyperRectDomain_Iterator.h>
Public Types | |
using | Iterator = TIterator |
using | Self = HyperRectDomain_ReverseIterator< Iterator > |
using | Point = typename Iterator::Point |
using | Dimension = typename Point::Dimension |
using | DifferenceType = typename std::iterator_traits< Self >::difference_type |
Type of the difference between two iterators (usually std::ptrdiff_t except for BigInteger). More... | |
Public Member Functions | |
HyperRectDomain_ReverseIterator (Iterator it) | |
Constructor from a HyperRectDomain iterator. More... | |
const Point & | dereference () const |
Dereference. More... | |
bool | equal (const Self &other) const |
Compare iterators. More... | |
void | increment () |
Increment iterator. More... | |
void | decrement () |
Decrement iterator. More... | |
void | advance (DifferenceType const &n) |
Advance iterator by given steps. More... | |
DifferenceType | distance_to (const Self &other) const |
Distance between two iterators on the same domain. More... | |
Private Attributes | |
Iterator | current |
Iterator | prev |
Reverse iterator for HyperRectDomain.
TIterator | Iterator type on HyperRectDomain |
Definition at line 66 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_ReverseIterator< TIterator >::DifferenceType = typename std::iterator_traits<Self>::difference_type |
Type of the difference between two iterators (usually std::ptrdiff_t except for BigInteger).
Definition at line 80 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_ReverseIterator< TIterator >::Dimension = typename Point::Dimension |
Definition at line 79 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_ReverseIterator< TIterator >::Iterator = TIterator |
Definition at line 76 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_ReverseIterator< TIterator >::Point = typename Iterator::Point |
Definition at line 78 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_ReverseIterator< TIterator >::Self = HyperRectDomain_ReverseIterator<Iterator> |
Definition at line 77 of file HyperRectDomain_Iterator.h.
|
inlineexplicit |
Constructor from a HyperRectDomain iterator.
Definition at line 84 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::prev.
|
inline |
Advance iterator by given steps.
Definition at line 118 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::current, and DGtal::HyperRectDomain_ReverseIterator< TIterator >::prev.
|
inline |
Decrement iterator.
Definition at line 111 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::current, and DGtal::HyperRectDomain_ReverseIterator< TIterator >::prev.
|
inline |
Dereference.
Definition at line 92 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::prev.
|
inline |
Distance between two iterators on the same domain.
Definition at line 125 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::current.
|
inline |
Compare iterators.
Definition at line 98 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::current.
|
inline |
Increment iterator.
Definition at line 104 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_ReverseIterator< TIterator >::current, and DGtal::HyperRectDomain_ReverseIterator< TIterator >::prev.
|
private |
Definition at line 131 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_ReverseIterator< TIterator >::advance(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::decrement(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::distance_to(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::equal(), and DGtal::HyperRectDomain_ReverseIterator< TIterator >::increment().
|
private |
Definition at line 131 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_ReverseIterator< TIterator >::advance(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::decrement(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::dereference(), DGtal::HyperRectDomain_ReverseIterator< TIterator >::HyperRectDomain_ReverseIterator(), and DGtal::HyperRectDomain_ReverseIterator< TIterator >::increment().