|
mmcfilters
Public API documentation
|
Single-pass iterator yielding (node, borrowed pixel span). More...
#include <ContourComputation.hpp>
Public Types | |
| using | iterator_concept = std::input_iterator_tag |
| C++20 iterator concept for this single-pass traversal. | |
| using | iterator_category = std::input_iterator_tag |
| Iterator category used by standard algorithms. | |
| using | value_type = std::pair< NodeId, std::span< const PixelId > > |
| Node identifier and borrowed contour span yielded by dereference. | |
| using | difference_type = std::ptrdiff_t |
| Signed type used to represent iterator distances. | |
Public Member Functions | |
| value_type | operator* () const |
| Borrows the current node contour. | |
| iterator & | operator++ () |
| Advances the shared single-pass position. | |
| void | operator++ (int) |
| Advances without retaining the previous borrowed contour. | |
Friends | |
| class | ContourComputation |
| bool | operator== (const iterator &it, std::default_sentinel_t) noexcept |
| Tests exhaustion against the range's sentinel. | |
Single-pass iterator yielding (node, borrowed pixel span).
The span is valid until this iterator, or one of its copies, advances or the shared traversal is destroyed. Copies share a position; each begin() creates an independent traversal. Copy the pixels to retain a contour.
Definition at line 79 of file ContourComputation.hpp.
| using mmcfilters::ContourComputation::iterator::difference_type = std::ptrdiff_t |
Signed type used to represent iterator distances.
Definition at line 88 of file ContourComputation.hpp.
| using mmcfilters::ContourComputation::iterator::iterator_category = std::input_iterator_tag |
Iterator category used by standard algorithms.
Definition at line 84 of file ContourComputation.hpp.
| using mmcfilters::ContourComputation::iterator::iterator_concept = std::input_iterator_tag |
C++20 iterator concept for this single-pass traversal.
Definition at line 82 of file ContourComputation.hpp.
| using mmcfilters::ContourComputation::iterator::value_type = std::pair<NodeId, std::span<const PixelId> > |
Node identifier and borrowed contour span yielded by dereference.
Definition at line 86 of file ContourComputation.hpp.
|
inline |
Borrows the current node contour.
Definition at line 96 of file ContourComputation.hpp.
|
inline |
Advances the shared single-pass position.
Definition at line 107 of file ContourComputation.hpp.
Advances without retaining the previous borrowed contour.
Definition at line 116 of file ContourComputation.hpp.
|
friend |
Definition at line 124 of file ContourComputation.hpp.
Tests exhaustion against the range's sentinel.
Definition at line 119 of file ContourComputation.hpp.