dip::PixelTable::iterator class

An iterator that visits each of the neighborhood’s pixels in turn.

Dereferencing the iterator returns the coordinates of the pixel. Satisfies the requirements for ForwardIterator.

Constructors, destructors, assignment and conversion operators

iterator() defaulted
Default constructor yields an invalid iterator that cannot be dereferenced.
iterator(dip::PixelTable const& pt) explicit
Constructs an iterator to the first pixel in the neighborhood.


using iterator_category = std::forward_iterator_tag
Iterator category.
using value_type = dip::IntegerArray
The value obtained by dereferencing are coordinates.
using reference = dip::IntegerArray const&
The type of a reference.


static auto end(dip::PixelTable const& pt) -> dip::PixelTable::iterator
Constructs an end iterator.
void swap(dip::PixelTable::iterator& other) noexcept
auto IsAtEnd() const -> bool
Test to see if the iterator reached past the last pixel.


auto operator*() const -> dip::PixelTable::iterator::reference
auto operator++() -> dip::PixelTable::iterator&
auto operator++(int ) -> dip::PixelTable::iterator
auto operator==(dip::PixelTable::iterator const& other) const -> bool
Equality comparison, is true if the two iterators reference the same pixel in the same pixel table.
auto operator!=(dip::PixelTable::iterator const& other) const -> bool
Inequality comparison.
auto operator bool() const -> bool explicit
Test to see if the iterator is still pointing at a pixel.