|
MorphologicalAttributeFilters
Public API documentation
|
Allocation-free iterator over one independent grid traversal. More...
#include <RegularGridAdjacency2D.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| Forward-iterator category for independent multi-pass traversal. | |
| using | iterator_concept = std::forward_iterator_tag |
| C++20 iterator concept for the traversal cursor. | |
| using | value_type = PixelId |
| Linear grid index yielded by the iterator. | |
| using | difference_type = std::ptrdiff_t |
| Signed distance type used by iterator algorithms. | |
| using | reference = PixelId |
| Value-returning reference type. | |
| using | pointer = void |
| No pointer type is exposed because dereference returns a value. | |
Public Member Functions | |
| IteratorAdjacencyT () noexcept=default | |
| Constructs an empty adjacency iterator. | |
| IteratorAdjacencyT (const RegularGridAdjacency2D *relation, int row, int column, int index) noexcept | |
| Creates an iterator over one traversal context. | |
| IteratorAdjacencyT & | operator++ () noexcept |
| Advances this iterator without modifying the relation or other ranges. | |
| IteratorAdjacencyT | operator++ (int) noexcept |
| Advances the iterator and returns its previous position. | |
| bool | operator== (const IteratorAdjacencyT &other) const noexcept |
| Returns true when both iterators identify the same traversal position. | |
| bool | operator!= (const IteratorAdjacencyT &other) const noexcept |
| Returns true when the traversal positions differ. | |
| PixelId | operator* () const noexcept |
| Returns the current neighbour as a linear grid index. | |
Allocation-free iterator over one independent grid traversal.
The iterator yields linear grid indices and respects both grid bounds and the optional forward-only mask. All cursor state belongs to the iterator, not to the adjacency relation.
Definition at line 690 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::difference_type = std::ptrdiff_t |
Signed distance type used by iterator algorithms.
Definition at line 750 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::iterator_category = std::forward_iterator_tag |
Forward-iterator category for independent multi-pass traversal.
Definition at line 743 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::iterator_concept = std::forward_iterator_tag |
C++20 iterator concept for the traversal cursor.
Definition at line 745 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::pointer = void |
No pointer type is exposed because dereference returns a value.
Definition at line 754 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::reference = PixelId |
Value-returning reference type.
Definition at line 752 of file RegularGridAdjacency2D.hpp.
| using mmcfilters::RegularGridAdjacency2D::IteratorAdjacencyT< ForwardOnly >::value_type = PixelId |
Linear grid index yielded by the iterator.
Definition at line 748 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Creates an iterator over one traversal context.
| relation | Adjacency relation traversed by the iterator. |
| row | Zero-based row coordinate. |
| column | Zero-based column coordinate. |
| index | Zero-based index. |
Definition at line 769 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Returns true when the traversal positions differ.
| other | Object to compare with or transfer from. |
Definition at line 812 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Returns the current neighbour as a linear grid index.
Definition at line 819 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Advances this iterator without modifying the relation or other ranges.
Definition at line 779 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Advances the iterator and returns its previous position.
Definition at line 790 of file RegularGridAdjacency2D.hpp.
|
inlinenoexcept |
Returns true when both iterators identify the same traversal position.
| other | Object to compare with or transfer from. |
Definition at line 802 of file RegularGridAdjacency2D.hpp.