ValueIterator Class
For easy loops a Value Iterator behaves like a ValueI-poiter:
- Bool-casts checks if there are values,
- Poiter-reference yields Value
- Increment moves to next Value
ValueIterator values(archive); while (values) { cout << *values << endl; sum += values->getDouble(); ++values; }
(Implemented as "smart poiter" wrapper for ValueIteratorI iterface)Interface
- Obtain new, empty ValueIterator suitable for given Archive
ValueIterator(const class Archive &archive); ValueIterator(ValueIteratorI *iter); ValueIterator();- Check if iterator is at valid position
operator bool () const;- Retrieve current ValueI
const ValueI * operator -> () const; const ValueI & operator * () const;- Move to next/prev Value
ValueIterator & operator ++ (); ValueIterator & operator -- ();- Number of "similar" values that can be read as one chunk in a block operation:
size_t determineChunk(const osiTime &until);- Sampling period for current values in secs.
double getPeriod() const;
IndexCreated from sources with MakeDoc Perl script.