Library: Foundation
Package: Dynamic
Header: Poco/Dynamic/VarIterator.h
VarIterator class.
Member Functions: operator !=, operator *, operator +, operator ++, operator -, operator --, operator =, operator ==, operator->, swap
typedef std::ptrdiff_t difference_type;
typedef std::bidirectional_iterator_tag iterator_category;
typedef Var * pointer;
typedef Var & reference;
typedef Var value_type;
VarIterator(
const VarIterator & other
);
Creates a copy of other VarIterator.
VarIterator(
Var * pVar,
bool positionEnd
);
Creates the VarIterator and positions it at the end of the recordset if positionEnd is true. Otherwise, it is positioned at the beginning.
~VarIterator();
Destroys the VarIterator.
bool operator != (
const VarIterator & other
) const;
Inequality operator.
Var & operator * () const;
Returns value at the current position.
VarIterator operator + (
std::size_t diff
) const;
Returns a copy the VarIterator advanced by diff positions.
const VarIterator & operator ++ () const;
Advances by one position and returns current position.
VarIterator operator ++ (
int
) const;
Advances by one position and returns copy of the iterator with previous current position.
VarIterator operator - (
std::size_t diff
) const;
Returns a copy the VarIterator backed by diff positions. Throws RangeException if diff is larger than current position.
const VarIterator & operator -- () const;
Goes back by one position and returns copy of the iterator with previous current position.
VarIterator operator -- (
int
) const;
Goes back by one position and returns previous current position.
VarIterator & operator = (
const VarIterator & other
);
Assigns the other VarIterator.
bool operator == (
const VarIterator & other
) const;
Equality operator.
Var * operator-> () const;
Returns pointer to the value at current position.
void swap(
VarIterator & other
);
Swaps the VarIterator with another one.
static const int POSITION_END;
End position indicator.