dip::Measurement::IteratorObject::Iterator class

An iterator to visit all features (columns) within an object (row) of the dip::Measurement table.

Contents

An object of this class can be treated (in only the most basic ways) as a std::array or std::vector.

Functions

auto begin() const -> dip::Measurement::ValueIterator
Iterator to the first value
auto end() const -> dip::Measurement::ValueIterator
Iterator one past the last value
auto data() const -> dip::Measurement::ValueType*
A pointer to the first value
auto size() const -> dip::uint
Number of values
auto IsAtEnd() const -> bool
True if done iterating (do not call other methods if this is true!)
auto FeatureName() const -> dip::String const&
Name of the feature
auto ObjectID() const -> dip::uint
ID of the object
auto ObjectIndex() const -> dip::uint
Index of the object (row number)

Operators

auto operator[](dip::uint index) const -> dip::Measurement::ValueType&
Index to access a specific value
auto operator*() const -> dip::Measurement::ValueType&
Dereference to access the first value
auto operator++() -> dip::Measurement::IteratorObject::Iterator&
Pre-increment, to access the next feature
auto operator++(int ) -> dip::Measurement::IteratorObject::Iterator
Post-increment, to access the next feature
auto operator bool() const -> bool explicit
True if the iterator is valid and can be used