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

Operators

auto operator bool() const -> bool explicit
True if the iterator is valid and can be used
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[](dip::uint index) const -> dip::Measurement::ValueType&
Index to access a specific value

Function documentation

dip::Measurement::ValueIterator begin( ) const

Iterator to the first value

dip::Measurement::ValueIterator end( ) const

Iterator one past the last value

dip::Measurement::ValueType* data( ) const

A pointer to the first value

dip::uint size( ) const

Number of values

bool IsAtEnd( ) const

True if done iterating (do not call other methods if this is true!)

dip::String const& FeatureName( ) const

Name of the feature

dip::uint ObjectID( ) const

ID of the object

dip::uint ObjectIndex( ) const

Index of the object (row number)

dip::Measurement::ValueType& operator[]( dip::uint index) const

Index to access a specific value

dip::Measurement::ValueType& operator*( ) const

Dereference to access the first value

dip::Measurement::IteratorObject::Iterator& operator++( )

Pre-increment, to access the next feature

dip::Measurement::IteratorObject::Iterator operator++( int )

Post-increment, to access the next feature

bool operator bool( ) const explicit

True if the iterator is valid and can be used