|
mmcfilters
Public API documentation
|
Breadth-first iterator over one subtree. More...
#include <MorphologicalTree.hpp>
Public Types | |
| using | iterator_category = std::input_iterator_tag |
| Standard iterator category exposed for STL compatibility. | |
| using | value_type = NodeId |
| Node id yielded by the iterator. | |
| using | difference_type = std::ptrdiff_t |
| Signed distance type exposed for STL compatibility. | |
| using | pointer = const NodeId * |
| Pointer type exposed for STL compatibility. | |
| using | reference = const NodeId & |
| Reference type exposed for STL compatibility. | |
Public Member Functions | |
| BreadthFirstNodeIterator ()=default | |
| Creates the end/sentinel breadth-first iterator. | |
| BreadthFirstNodeIterator (const MorphologicalTree *tree, NodeId rootNodeId, std::size_t expectedVersion) | |
Creates a breadth-first iterator rooted at rootNodeId. | |
| BreadthFirstNodeIterator & | operator++ () |
| Advances to the next node in breadth-first order. | |
| NodeId | operator* () const |
| Returns the current breadth-first node id. | |
| bool | operator== (const BreadthFirstNodeIterator &other) const |
| Compares breadth-first iterator exhaustion state. | |
| bool | operator!= (const BreadthFirstNodeIterator &other) const |
| Compares breadth-first iterator exhaustion state for inequality. | |
Breadth-first iterator over one subtree.
Definition at line 3818 of file MorphologicalTree.hpp.
Signed distance type exposed for STL compatibility.
Definition at line 3833 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::BreadthFirstNodeIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 3829 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 3835 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 3837 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 3831 of file MorphologicalTree.hpp.
|
inline |
Creates a breadth-first iterator rooted at rootNodeId.
| tree | Tree topology. |
| rootNodeId | Identifier of the traversal root. |
| expectedVersion | Mutation version required by the operation. |
Definition at line 3851 of file MorphologicalTree.hpp.
|
inline |
Compares breadth-first iterator exhaustion state for inequality.
| other | Object to compare with or transfer from. |
Definition at line 3897 of file MorphologicalTree.hpp.
|
inline |
Returns the current breadth-first node id.
Definition at line 3878 of file MorphologicalTree.hpp.
|
inline |
Advances to the next node in breadth-first order.
Definition at line 3862 of file MorphologicalTree.hpp.
|
inline |
Compares breadth-first iterator exhaustion state.
| other | Object to compare with or transfer from. |
Definition at line 3889 of file MorphologicalTree.hpp.