|
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 3793 of file MorphologicalTree.hpp.
Signed distance type exposed for STL compatibility.
Definition at line 3808 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::BreadthFirstNodeIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 3804 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 3810 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 3812 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 3806 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 3826 of file MorphologicalTree.hpp.
|
inline |
Compares breadth-first iterator exhaustion state for inequality.
| other | Object to compare with or transfer from. |
Definition at line 3872 of file MorphologicalTree.hpp.
|
inline |
Returns the current breadth-first node id.
Definition at line 3853 of file MorphologicalTree.hpp.
|
inline |
Advances to the next node in breadth-first order.
Definition at line 3837 of file MorphologicalTree.hpp.
|
inline |
Compares breadth-first iterator exhaustion state.
| other | Object to compare with or transfer from. |
Definition at line 3864 of file MorphologicalTree.hpp.