#include "diplib.h"
dip::Image::Pixel::Iterator class

An iterator to iterate over the samples in the pixel. Mutable forward iterator.

Note that this iterator has no useful public constructors, and needs to be constructed through dip::Image::Pixel::begin and dip::Image::Pixel::end.

Constructors, destructors, assignment and conversion operators

Iterator()
Default initializable, results in invalid iterator

Aliases

using iterator_category = std::forward_iterator_tag
Iterator category
using value_type = dip::Image::Sample
The data type of a sample, obtained when dereferencing the iterator
using reference = dip::Image::Pixel::Iterator::value_type&
The type of a reference to a sample
using pointer = dip::Image::Pixel::Iterator::value_type*
The type of a pointer to a sample

Functions

void swap(dip::Image::Pixel::Iterator& other) noexcept
Swap two iterators

Operators

auto operator*() -> dip::Image::Pixel::Iterator::reference
Dereference
auto operator->() -> dip::Image::Pixel::Iterator::pointer
Dereference
auto operator++() -> dip::Image::Pixel::Iterator&
Pre-increment
auto operator++(int ) -> dip::Image::Pixel::Iterator
Post-increment
auto operator==(dip::Image::Pixel::Iterator const& other) const -> bool
Equality comparison
auto operator!=(dip::Image::Pixel::Iterator const& other) const -> bool
Inequality comparison