|
mmcfilters
Public API documentation
|
Iterator over a materialised path between two nodes. 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 | |
| PathBetweenNodesIterator ()=default | |
| Creates the end/sentinel path-between-nodes iterator. | |
| PathBetweenNodesIterator (const MorphologicalTree *tree, const std::vector< NodeId > *path, std::size_t index, std::size_t expectedVersion) | |
| Creates an iterator over a materialised node path. | |
| PathBetweenNodesIterator & | operator++ () |
| Advances to the next node in the materialised path. | |
| NodeId | operator* () const |
| Returns the current node id in the materialised path. | |
| bool | operator== (const PathBetweenNodesIterator &other) const |
| Compares path iterator positions. | |
| bool | operator!= (const PathBetweenNodesIterator &other) const |
| Compares path iterator positions for inequality. | |
Iterator over a materialised path between two nodes.
Definition at line 4047 of file MorphologicalTree.hpp.
Signed distance type exposed for STL compatibility.
Definition at line 4064 of file MorphologicalTree.hpp.
| using mmcfilters::MorphologicalTree::PathBetweenNodesIterator::iterator_category = std::input_iterator_tag |
Standard iterator category exposed for STL compatibility.
Definition at line 4060 of file MorphologicalTree.hpp.
Pointer type exposed for STL compatibility.
Definition at line 4066 of file MorphologicalTree.hpp.
Reference type exposed for STL compatibility.
Definition at line 4068 of file MorphologicalTree.hpp.
Node id yielded by the iterator.
Definition at line 4062 of file MorphologicalTree.hpp.
|
inline |
Creates an iterator over a materialised node path.
| tree | Tree topology. |
| path | Node path updated by the edit. |
| index | Zero-based index. |
| expectedVersion | Mutation version required by the operation. |
Definition at line 4083 of file MorphologicalTree.hpp.
|
inline |
Compares path iterator positions for inequality.
| other | Object to compare with or transfer from. |
Definition at line 4123 of file MorphologicalTree.hpp.
|
inline |
Returns the current node id in the materialised path.
Definition at line 4104 of file MorphologicalTree.hpp.
|
inline |
Advances to the next node in the materialised path.
Definition at line 4091 of file MorphologicalTree.hpp.
|
inline |
Compares path iterator positions.
| other | Object to compare with or transfer from. |
Definition at line 4115 of file MorphologicalTree.hpp.