|
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 4233 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::SubtreeNodeIterator::difference_type = std::ptrdiff_t |
Signed distance type exposed for STL compatibility.
Definition at line 4248 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::SubtreeNodeIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 4244 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 4250 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 4252 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 4246 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 4266 of file MorphologicalTree.hpp.
|
inline |
Compares subtree iterator exhaustion state for inequality.
| other | Object to compare with or transfer from. |
Definition at line 4314 of file MorphologicalTree.hpp.
|
inline |
Returns the current pre-order subtree node id.
Definition at line 4295 of file MorphologicalTree.hpp.
|
inline |
Advances to the next node in pre-order subtree traversal.
Definition at line 4277 of file MorphologicalTree.hpp.
|
inline |
Compares subtree iterator exhaustion state.
| other | Object to compare with or transfer from. |
Definition at line 4306 of file MorphologicalTree.hpp.