Iterator for HyperRectDomain.
More...
#include <DGtal/kernel/domains/HyperRectDomain_Iterator.h>
|
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).
|
template<typename TPoint>
class DGtal::HyperRectDomain_Iterator< TPoint >
Iterator for HyperRectDomain.
- Template Parameters
-
Definition at line 142 of file HyperRectDomain_Iterator.h.
◆ DifferenceType
template<typename TPoint>
◆ Dimension
template<typename TPoint>
◆ Point
template<typename TPoint>
◆ Self
template<typename TPoint>
◆ HyperRectDomain_Iterator()
template<typename TPoint>
HyperRectDomain iterator constructor.
- Parameters
-
p | The point pointed by this iterator |
lower | Lower bound of the iterated domain |
upper | Upper bound of the iterated domain |
- Precondition
- p must lie inside the given bounds or be equal to one of its bound
-
the bounds must describe a valid (possibly empty) domain
Definition at line 167 of file HyperRectDomain_Iterator.h.
169 {
172 "The lower bound must be lower than the upper bound or, for an empty domain, be equal to the upper bound + diagonal(1)."
173 );
174
177 "The point must be inside the domain or be equal to one of his bound."
178 );
179
180
184 {
187 }
188 }
Iterator for HyperRectDomain.
DifferenceType pos
Iterator position in the current sequence.
TPoint mylower
Copies of the Domain limits.
typename std::iterator_traits< Self >::difference_type DifferenceType
Type of the difference between two iterators (usually std::ptrdiff_t except for BigInteger).
TPoint myPoint
Current Point in the domain.
typename Point::Dimension Dimension
◆ advance()
template<typename TPoint>
Advances the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 253 of file HyperRectDomain_Iterator.h.
254 {
257 {
260 {
265 }
266 }
268 {
271 {
276 }
277 }
278 }
◆ decrement()
template<typename TPoint>
Decrements the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 238 of file HyperRectDomain_Iterator.h.
◆ dereference()
template<typename TPoint>
◆ distance_to()
template<typename TPoint>
Distance between two iterators on the same domain (lexicographic order).
Definition at line 283 of file HyperRectDomain_Iterator.h.
284 {
287 "The compared iterators iterate on different domains."
288 );
289
291 }
◆ equal()
template<typename TPoint>
Compare iterators.
- Note
- compare only the pointed point, not the iterated domain.
Definition at line 209 of file HyperRectDomain_Iterator.h.
210 {
213 "The compared iterators iterate on different domains."
214 );
215
217 }
◆ increment()
template<typename TPoint>
Increments the iterator in order to scan the domain points dimension by dimension (lexicographic order).
Definition at line 223 of file HyperRectDomain_Iterator.h.
◆ boost::iterator_core_access
template<typename TPoint>
friend class boost::iterator_core_access |
|
friend |
◆ mylower
template<typename TPoint>
◆ myPoint
template<typename TPoint>
◆ myupper
template<typename TPoint>
◆ pos
template<typename TPoint>
The documentation for this class was generated from the following file: