DGtal 1.3.0
|
#include <DGtal/kernel/domains/HyperRectDomain_Iterator.h>
Public Types | |
using | Point = TPoint |
using | Self = HyperRectDomain_subIterator< 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). More... | |
Public Member Functions | |
HyperRectDomain_subIterator (const TPoint &p, const TPoint &lower, const TPoint &upper, const std::vector< Dimension > &subDomain) | |
Private Member Functions | |
const Point & | dereference () const |
Dereference. More... | |
bool | equal (const Self &other) const |
Compare iterators. More... | |
void | increment () |
Increments the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user). More... | |
void | decrement () |
Decrements the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user). More... | |
void | advance (DifferenceType const &n) |
Advances the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user). More... | |
DifferenceType | distance_to (const Self &other) const |
Distance between two iterators on the same domain (by using the subDomain order given by the user). More... | |
Private Attributes | |
TPoint | myPoint |
Current Point in the domain. More... | |
TPoint | mylower |
Copies of the Domain limits. More... | |
TPoint | myupper |
std::vector< Dimension > | mySubDomain |
DifferenceType | pos |
Iterator position in the current sequence. More... | |
Friends | |
class | boost::iterator_core_access |
Description of class 'HyperRectDomain_subIterator'
Aim:
Definition at line 316 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_subIterator< 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 333 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_subIterator< TPoint >::Dimension = typename Point::Dimension |
Definition at line 332 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_subIterator< TPoint >::Point = TPoint |
Definition at line 330 of file HyperRectDomain_Iterator.h.
using DGtal::HyperRectDomain_subIterator< TPoint >::Self = HyperRectDomain_subIterator<TPoint> |
Definition at line 331 of file HyperRectDomain_Iterator.h.
|
inline |
Definition at line 335 of file HyperRectDomain_Iterator.h.
References lower(), DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::myPoint, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, DGtal::HyperRectDomain_subIterator< TPoint >::pos, and upper().
|
inlineprivate |
Advances the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user).
Definition at line 441 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::myPoint, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, and DGtal::HyperRectDomain_subIterator< TPoint >::pos.
|
inlineprivate |
Decrements the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user).
Definition at line 426 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::myPoint, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, and DGtal::HyperRectDomain_subIterator< TPoint >::pos.
|
inlineprivate |
Dereference.
Definition at line 381 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::myPoint, and DGtal::HyperRectDomain_subIterator< TPoint >::myupper.
|
inlineprivate |
Distance between two iterators on the same domain (by using the subDomain order given by the user).
Definition at line 474 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, and DGtal::HyperRectDomain_subIterator< TPoint >::pos.
|
inlineprivate |
Compare iterators.
Definition at line 396 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, and DGtal::HyperRectDomain_subIterator< TPoint >::pos.
|
inlineprivate |
Increments the iterator in order to scan the domain points dimension by dimension (by using the subDomain order given by the user).
Definition at line 411 of file HyperRectDomain_Iterator.h.
References DGtal::HyperRectDomain_subIterator< TPoint >::mylower, DGtal::HyperRectDomain_subIterator< TPoint >::myPoint, DGtal::HyperRectDomain_subIterator< TPoint >::mySubDomain, DGtal::HyperRectDomain_subIterator< TPoint >::myupper, and DGtal::HyperRectDomain_subIterator< TPoint >::pos.
|
friend |
Definition at line 378 of file HyperRectDomain_Iterator.h.
|
private |
Copies of the Domain limits.
Definition at line 489 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_subIterator< TPoint >::advance(), DGtal::HyperRectDomain_subIterator< TPoint >::decrement(), DGtal::HyperRectDomain_subIterator< TPoint >::dereference(), DGtal::HyperRectDomain_subIterator< TPoint >::distance_to(), DGtal::HyperRectDomain_subIterator< TPoint >::equal(), DGtal::HyperRectDomain_subIterator< TPoint >::HyperRectDomain_subIterator(), and DGtal::HyperRectDomain_subIterator< TPoint >::increment().
|
private |
Current Point in the domain.
Definition at line 486 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_subIterator< TPoint >::advance(), DGtal::HyperRectDomain_subIterator< TPoint >::decrement(), DGtal::HyperRectDomain_subIterator< TPoint >::dereference(), DGtal::HyperRectDomain_subIterator< TPoint >::HyperRectDomain_subIterator(), and DGtal::HyperRectDomain_subIterator< TPoint >::increment().
|
private |
Vector of subDomain on dimension, to fix the order in which dimensions are considered.
Definition at line 494 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_subIterator< TPoint >::advance(), DGtal::HyperRectDomain_subIterator< TPoint >::decrement(), DGtal::HyperRectDomain_subIterator< TPoint >::distance_to(), DGtal::HyperRectDomain_subIterator< TPoint >::equal(), DGtal::HyperRectDomain_subIterator< TPoint >::HyperRectDomain_subIterator(), and DGtal::HyperRectDomain_subIterator< TPoint >::increment().
|
private |
Definition at line 489 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_subIterator< TPoint >::advance(), DGtal::HyperRectDomain_subIterator< TPoint >::decrement(), DGtal::HyperRectDomain_subIterator< TPoint >::dereference(), DGtal::HyperRectDomain_subIterator< TPoint >::distance_to(), DGtal::HyperRectDomain_subIterator< TPoint >::equal(), DGtal::HyperRectDomain_subIterator< TPoint >::HyperRectDomain_subIterator(), and DGtal::HyperRectDomain_subIterator< TPoint >::increment().
|
private |
Iterator position in the current sequence.
Definition at line 497 of file HyperRectDomain_Iterator.h.
Referenced by DGtal::HyperRectDomain_subIterator< TPoint >::advance(), DGtal::HyperRectDomain_subIterator< TPoint >::decrement(), DGtal::HyperRectDomain_subIterator< TPoint >::distance_to(), DGtal::HyperRectDomain_subIterator< TPoint >::equal(), DGtal::HyperRectDomain_subIterator< TPoint >::HyperRectDomain_subIterator(), and DGtal::HyperRectDomain_subIterator< TPoint >::increment().