|
mmcfilters
Public API documentation
|
Iterator over live node ids in the dense internal-node domain. 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 | |
| AliveNodeIterator ()=default | |
| Creates the end/sentinel iterator. | |
| AliveNodeIterator (const MorphologicalTree *tree, NodeId current, NodeId end, std::size_t expectedVersion) | |
Creates an iterator over [current, end) with fail-fast version checking. | |
| AliveNodeIterator & | operator++ () |
| Advances to the next live node slot. | |
| NodeId | operator* () const |
| Returns the current live node id. | |
| bool | operator== (const AliveNodeIterator &other) const |
| Compares iterator positions. | |
| bool | operator!= (const AliveNodeIterator &other) const |
| Compares iterator positions for inequality. | |
Iterator over live node ids in the dense internal-node domain.
Definition at line 3072 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::AliveNodeIterator::difference_type = std::ptrdiff_t |
Signed distance type exposed for STL compatibility.
Definition at line 3106 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::AliveNodeIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 3102 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 3108 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 3110 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 3104 of file MorphologicalTree.hpp.
|
inline |
Creates an iterator over [current, end) with fail-fast version checking.
| tree | Tree topology. |
| current | Current iterator or traversal position. |
| end | Exclusive end position. |
| expectedVersion | Mutation version required by the operation. |
Definition at line 3125 of file MorphologicalTree.hpp.
|
inline |
Compares iterator positions for inequality.
| other | Object to compare with or transfer from. |
Definition at line 3168 of file MorphologicalTree.hpp.
|
inline |
Returns the current live node id.
Definition at line 3149 of file MorphologicalTree.hpp.
|
inline |
Advances to the next live node slot.
Definition at line 3135 of file MorphologicalTree.hpp.
|
inline |
Compares iterator positions.
| other | Object to compare with or transfer from. |
Definition at line 3160 of file MorphologicalTree.hpp.