Library: Data
Package: DataCore
Header: Poco/Data/RowIterator.h
RowIterator 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 Row * pointer;
typedef Row & reference;
typedef Row value_type;
RowIterator(
const RowIterator & other
);
Creates a copy of other RowIterator.
RowIterator(
RecordSet * pRecordSet,
bool positionEnd
);
Creates the RowIterator and positions it at the end of the recordset if positionEnd is true. Otherwise, it is positioned at the beginning.
~RowIterator();
Destroys the RowIterator.
bool operator != (
const RowIterator & other
) const;
Inequality operator.
Row & operator * () const;
Returns reference to the current row.
RowIterator operator + (
std::size_t diff
) const;
Returns a copy the RowIterator advanced by diff positions.
const RowIterator & operator ++ () const;
Advances by one position and returns current position.
RowIterator operator ++ (
int
) const;
Advances by one position and returns copy of the iterator with previous current position.
RowIterator operator - (
std::size_t diff
) const;
Returns a copy the RowIterator backed by diff positions. Throws RangeException if diff is larger than current position.
const RowIterator & operator -- () const;
Goes back by one position and returns copy of the iterator with previous current position.
RowIterator operator -- (
int
) const;
Goes back by one position and returns previous current position.
RowIterator & operator = (
const RowIterator & other
);
Assigns the other RowIterator.
bool operator == (
const RowIterator & other
) const;
Equality operator.
Row * operator-> () const;
Returns pointer to the current row.
void swap(
RowIterator & other
);
Swaps the RowIterator with another one.
static const std::size_t POSITION_END;
End position indicator.