#include <Traversal.h>
An iterator object representing the state of an upstream graph traversal.
- See Also
- Element::traverseGraph
Definition at line 191 of file Traversal.h.
GraphIterator::~GraphIterator |
( |
| ) |
|
|
inline |
Interpret this object as an iteration range, and return its begin iterator.
Definition at line 299 of file Traversal.h.
Return the sentinel end iterator for this class.
ElementPtr GraphIterator::getConnectingElement |
( |
| ) |
const |
|
inline |
Return the connecting element, if any, of the current edge.
Definition at line 241 of file Traversal.h.
ElementPtr GraphIterator::getDownstreamElement |
( |
| ) |
const |
|
inline |
Return the downstream element of the current edge.
Definition at line 235 of file Traversal.h.
size_t GraphIterator::getElementDepth |
( |
| ) |
const |
|
inline |
Return the element depth of the current traversal, where a single edge between two elements represents a depth of one.
Definition at line 265 of file Traversal.h.
size_t GraphIterator::getNodeDepth |
( |
| ) |
const |
Return the node depth of the current traversal, where a single edge between two nodes represents a depth of one.
bool GraphIterator::getPruneSubgraph |
( |
| ) |
const |
|
inline |
Return the prune subgraph flag, which controls whether the current subgraph is pruned from traversal.
Definition at line 288 of file Traversal.h.
ElementPtr GraphIterator::getUpstreamElement |
( |
| ) |
const |
|
inline |
Return the upstream element of the current edge.
Definition at line 247 of file Traversal.h.
size_t GraphIterator::getUpstreamIndex |
( |
| ) |
const |
|
inline |
Return the index of the current edge within the range of upstream edges available to the downstream element.
Definition at line 254 of file Traversal.h.
Edge GraphIterator::operator* |
( |
| ) |
const |
|
inline |
Dereference this iterator, returning the current edge in the traversal.
Definition at line 220 of file Traversal.h.
Iterate to the next edge in the traversal.
- Exceptions
-
bool GraphIterator::operator== |
( |
const GraphIterator & |
rhs | ) |
const |
|
inline |
void GraphIterator::setPruneSubgraph |
( |
bool |
prune | ) |
|
|
inline |
Set the prune subgraph flag, which controls whether the current subgraph is pruned from traversal.
- Parameters
-
prune | If set to true, then the current subgraph will be pruned. |
Definition at line 281 of file Traversal.h.
The documentation for this class was generated from the following file: