|
mmcfilters
Public API documentation
|
Iterator over the direct children of one node. More...
#include <MorphologicalTree.hpp>
Public Types | |
| using | iterator_category = std::forward_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 | |
| ChildrenIterator ()=default | |
| Creates the end/sentinel child iterator. | |
| ChildrenIterator (const MorphologicalTree *tree, NodeId currentLocal, std::size_t expectedVersion) | |
| Creates a child iterator starting from a linked-list slot. | |
| ChildrenIterator & | operator++ () |
| Advances to the next sibling in the child list. | |
| NodeId | operator* () const |
| Returns the current child node id. | |
| bool | operator== (const ChildrenIterator &other) const |
| Compares child iterator positions. | |
| bool | operator!= (const ChildrenIterator &other) const |
| Compares child iterator positions for inequality. | |
Iterator over the direct children of one node.
Definition at line 3245 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::ChildrenIterator::difference_type = std::ptrdiff_t |
Signed distance type exposed for STL compatibility.
Definition at line 3260 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::ChildrenIterator::iterator_category = std::forward_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 3256 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 3262 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 3264 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 3258 of file MorphologicalTree.hpp.
|
inline |
Creates a child iterator starting from a linked-list slot.
| tree | Tree topology. |
| currentLocal | Current local iterator position. |
| expectedVersion | Mutation version required by the operation. |
Definition at line 3278 of file MorphologicalTree.hpp.
|
inline |
Compares child iterator positions for inequality.
| other | Object to compare with or transfer from. |
Definition at line 3318 of file MorphologicalTree.hpp.
|
inline |
Returns the current child node id.
Definition at line 3299 of file MorphologicalTree.hpp.
|
inline |
Advances to the next sibling in the child list.
Definition at line 3286 of file MorphologicalTree.hpp.
|
inline |
Compares child iterator positions.
| other | Object to compare with or transfer from. |
Definition at line 3310 of file MorphologicalTree.hpp.