#include "diplib.h"
Iterator class
An iterator to iterate over the samples in the pixel. Mutable forward iterator.
Contents
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 pointer = dip::Image::Pixel::Iterator::value_type*
- The type of a pointer to a sample
- using reference = dip::Image::Pixel::Iterator::value_type&
- The type of a reference to a sample
- using value_type = dip::Image::Sample
- The data type of a sample, obtained when dereferencing the iterator
Functions
- void swap(dip::Image::Pixel::Iterator& other) noexcept
- Swap two iterators
Operators
- auto operator!=(dip::Image::Pixel::Iterator const& other) const -> bool
- Inequality comparison
- auto operator*() -> dip::Image::Pixel::Iterator::reference
- Dereference
- auto operator++() -> dip::Image::Pixel::Iterator&
- Pre-increment
- auto operator++(int ) -> dip::Image::Pixel::Iterator
- Post-increment
- auto operator->() -> dip::Image::Pixel::Iterator::pointer
- Dereference
- auto operator==(dip::Image::Pixel::Iterator const& other) const -> bool
- Equality comparison
Alias documentation
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
Function documentation
Iterator( )
Default initializable, results in invalid iterator
void swap( dip::Image::Pixel::Iterator& other) noexcept
Swap two iterators
dip::Image::Pixel::Iterator::reference operator*( )
Dereference
dip::Image::Pixel::Iterator::pointer operator->( )
Dereference
dip::Image::Pixel::Iterator& operator++( )
Pre-increment
dip::Image::Pixel::Iterator operator++( int )
Post-increment
bool operator==( dip::Image::Pixel::Iterator const& other) const
Equality comparison
bool operator!=( dip::Image::Pixel::Iterator const& other) const
Inequality comparison