![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
The StructureIterator class.
Iterates segments on the border of the reachability structure. An interval can be passed. If the interval spans two edges (bottom->left, or right->top) the iterator takes the bend at the corner.
Definition at line 488 of file structure.h.
#include <structure.h>
Public Member Functions | |
| StructureIterator (const Structure &str, Pointer first, Pointer last) | |
| constructor with two segments More... | |
| StructureIterator (const Structure &str, const PointerInterval &ival, Pointer ifnull=nullptr) | |
| constructor with interval of segments More... | |
| operator bool () const | |
| true if the iterator is pointing to a valid interval; false if the iterator has gone off the range More... | |
| bool | operator! () const |
| operator Pointer () | |
| pointer to current interval More... | |
| BoundarySegment & | operator * () |
| BoundarySegment * | operator -> () |
| StructureIterator & | operator++ () |
| pre-increment; advance the iterator More... | |
Private Attributes | |
| const Structure & | str |
| the associated reachability structure More... | |
| Pointer | current |
| current location of the iterator More... | |
| Pointer | last |
| last segment More... | |
| frechet::reach::StructureIterator::StructureIterator | ( | const Structure & | str, |
| Pointer | first, | ||
| Pointer | last | ||
| ) |
constructor with two segments
| str | the associated reachability structure |
| first | first segment (inclusive) |
| last | last segment (inclusive) |
| frechet::reach::StructureIterator::StructureIterator | ( | const Structure & | str, |
| const PointerInterval & | ival, | ||
| Pointer | ifnull = nullptr |
||
| ) |
constructor with interval of segments
| str | the associated reachability structure |
| ival | interval |
| ifnull | fallback, if one of the interval pointers is null (which is often the case with see-through segments) |
|
inline |
Definition at line 534 of file structure.h.
|
inline |
Definition at line 538 of file structure.h.
|
inline |
true if the iterator is pointing to a valid interval; false if the iterator has gone off the range
Definition at line 520 of file structure.h.
|
inlineexplicit |
pointer to current interval
Definition at line 529 of file structure.h.
|
inline |
Definition at line 524 of file structure.h.
| StructureIterator & StructureIterator::operator++ | ( | ) |
pre-increment; advance the iterator
Definition at line 1042 of file structure.cpp.
|
private |
current location of the iterator
Definition at line 494 of file structure.h.
|
private |
last segment
Definition at line 496 of file structure.h.
|
private |
the associated reachability structure
Definition at line 492 of file structure.h.