|
mmcfilters
Public API documentation
|
Depth-first iterator over a subtree in pre-order. 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 | |
| SubtreeNodeIterator ()=default | |
| Creates the end/sentinel subtree iterator. | |
| SubtreeNodeIterator (const MorphologicalTree *tree, NodeId rootNodeId, std::size_t expectedVersion) | |
Creates a pre-order subtree iterator rooted at rootNodeId. | |
| SubtreeNodeIterator & | operator++ () |
| Advances to the next node in pre-order subtree traversal. | |
| NodeId | operator* () const |
| Returns the current pre-order subtree node id. | |
| bool | operator== (const SubtreeNodeIterator &other) const |
| Compares subtree iterator exhaustion state. | |
| bool | operator!= (const SubtreeNodeIterator &other) const |
| Compares subtree iterator exhaustion state for inequality. | |
Depth-first iterator over a subtree in pre-order.
Definition at line 4258 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::SubtreeNodeIterator::difference_type = std::ptrdiff_t |
Signed distance type exposed for STL compatibility.
Definition at line 4273 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::SubtreeNodeIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 4269 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 4275 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 4277 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 4271 of file MorphologicalTree.hpp.
|
inline |
Creates a pre-order subtree iterator rooted at rootNodeId.
| tree | Tree topology. |
| rootNodeId | Identifier of the traversal root. |
| expectedVersion | Mutation version required by the operation. |
Definition at line 4291 of file MorphologicalTree.hpp.
|
inline |
Compares subtree iterator exhaustion state for inequality.
| other | Object to compare with or transfer from. |
Definition at line 4339 of file MorphologicalTree.hpp.
|
inline |
Returns the current pre-order subtree node id.
Definition at line 4320 of file MorphologicalTree.hpp.
|
inline |
Advances to the next node in pre-order subtree traversal.
Definition at line 4302 of file MorphologicalTree.hpp.
|
inline |
Compares subtree iterator exhaustion state.
| other | Object to compare with or transfer from. |
Definition at line 4331 of file MorphologicalTree.hpp.