DGtal 1.4.0
|
Iterator for HyperRectDomain. More...
#include <DGtal/kernel/domains/HyperRectDomain_Iterator.h>
Public Types | |
using | Point = TPoint |
using | Self = HyperRectDomain_Iterator<TPoint> |
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). | |
Public Member Functions | |
HyperRectDomain_Iterator (const Point &p, const Point &lower, const Point &upper) | |
HyperRectDomain iterator constructor. | |
Private Member Functions | |
const Point & | dereference () const |
Dereference. | |
bool | equal (const Self &other) const |
Compare iterators. | |
void | increment () |
Increments the iterator in order to scan the domain points dimension by dimension (lexicographic order). | |
void | decrement () |
Decrements the iterator in order to scan the domain points dimension by dimension (lexicographic order). | |
void | advance (DifferenceType const &n) |
Advances the iterator in order to scan the domain points dimension by dimension (lexicographic order). | |
DifferenceType | distance_to (const Self &other) const |
Distance between two iterators on the same domain (lexicographic order). | |
Private Attributes | |
TPoint | myPoint |
Current Point in the domain. | |
TPoint | mylower |
Copies of the Domain limits. | |
TPoint | myupper |
DifferenceType | pos |
Iterator position in the current sequence. | |
Friends | |
class | boost::iterator_core_access |
Iterator for HyperRectDomain.
TPoint | Point type. |
Definition at line 142 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_Iterator< TPoint >::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 159 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_Iterator< TPoint >::Dimension = typename Point::Dimension |
Definition at line 158 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_Iterator< TPoint >::Point = TPoint |
Definition at line 156 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_Iterator< TPoint >::Self = HyperRectDomain_Iterator<TPoint> |
Definition at line 157 of file HyperRectDomain_Iterator.h.
|
inline |
HyperRectDomain iterator constructor.
p | The point pointed by this iterator |
lower | Lower bound of the iterated domain |
upper | Upper bound of the iterated domain |
Definition at line 171 of file HyperRectDomain_Iterator.h.
References lower(), DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myPoint, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, DGtal::HyperRectDomain_Iterator< TPoint >::pos, and upper().
|
inlineprivate |
Advances the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 257 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myPoint, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, and DGtal::HyperRectDomain_Iterator< TPoint >::pos.
|
inlineprivate |
Decrements the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 242 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myPoint, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, and DGtal::HyperRectDomain_Iterator< TPoint >::pos.
|
inlineprivate |
Dereference.
Definition at line 198 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myPoint, and DGtal::HyperRectDomain_Iterator< TPoint >::myupper.
|
inlineprivate |
Distance between two iterators on the same domain (lexicographic order).
Definition at line 287 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, and DGtal::HyperRectDomain_Iterator< TPoint >::pos.
|
inlineprivate |
Compare iterators.
Definition at line 213 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, and DGtal::HyperRectDomain_Iterator< TPoint >::pos.
|
inlineprivate |
Increments the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 227 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_Iterator< TPoint >::mylower, DGtal::HyperRectDomain_Iterator< TPoint >::myPoint, DGtal::HyperRectDomain_Iterator< TPoint >::myupper, and DGtal::HyperRectDomain_Iterator< TPoint >::pos.
|
friend |
Definition at line 195 of file HyperRectDomain_Iterator.h.
|
private |
Copies of the Domain limits.
Definition at line 302 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_Iterator< TPoint >::advance(), DGtal::HyperRectDomain_Iterator< TPoint >::decrement(), DGtal::HyperRectDomain_Iterator< TPoint >::dereference(), DGtal::HyperRectDomain_Iterator< TPoint >::distance_to(), DGtal::HyperRectDomain_Iterator< TPoint >::equal(), DGtal::HyperRectDomain_Iterator< TPoint >::HyperRectDomain_Iterator(), and DGtal::HyperRectDomain_Iterator< TPoint >::increment().
|
private |
Current Point in the domain.
Definition at line 299 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_Iterator< TPoint >::advance(), DGtal::HyperRectDomain_Iterator< TPoint >::decrement(), DGtal::HyperRectDomain_Iterator< TPoint >::dereference(), DGtal::HyperRectDomain_Iterator< TPoint >::HyperRectDomain_Iterator(), and DGtal::HyperRectDomain_Iterator< TPoint >::increment().
|
private |
Definition at line 302 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_Iterator< TPoint >::advance(), DGtal::HyperRectDomain_Iterator< TPoint >::decrement(), DGtal::HyperRectDomain_Iterator< TPoint >::dereference(), DGtal::HyperRectDomain_Iterator< TPoint >::distance_to(), DGtal::HyperRectDomain_Iterator< TPoint >::equal(), DGtal::HyperRectDomain_Iterator< TPoint >::HyperRectDomain_Iterator(), and DGtal::HyperRectDomain_Iterator< TPoint >::increment().
|
private |
Iterator position in the current sequence.
Definition at line 305 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_Iterator< TPoint >::advance(), DGtal::HyperRectDomain_Iterator< TPoint >::decrement(), DGtal::HyperRectDomain_Iterator< TPoint >::distance_to(), DGtal::HyperRectDomain_Iterator< TPoint >::equal(), DGtal::HyperRectDomain_Iterator< TPoint >::HyperRectDomain_Iterator(), and DGtal::HyperRectDomain_Iterator< TPoint >::increment().