#include "diplib/measurement.h"
Iterator class
An iterator to visit all objects (rows) within a feature (column group) of the dip::Measurement table.
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::IteratorFeature::Iterator&
- Pre-increment, to access the next object
- auto operator++(int ) -> dip::Measurement::IteratorFeature::Iterator
- Post-increment, to access the next object
- 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
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 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::IteratorFeature::Iterator& operator++( )
Pre-increment, to access the next object
dip::Measurement::IteratorFeature::Iterator operator++( int )
Post-increment, to access the next object
bool operator bool( ) const explicit
True if the iterator is valid and can be used