pqxx::icursor_iterator Class Reference
Approximate istream_iterator for icursorstream.
More...
#include <cursor.hxx>
List of all members.
Detailed Description
Approximate istream_iterator for icursorstream.
Intended as an implementation of an input_iterator (as defined by the C++ Standard Library), this class supports only two basic operations: reading the current element, and moving forward. In addition to the minimal guarantees for istream_iterators, this class supports multiple successive reads of the same position (the current result set is cached in the iterator) even after copying and even after new data have been read from the stream. This appears to be a requirement for input_iterators. Comparisons are also supported in the general case.
The iterator does not care about its own position, however. Moving an iterator forward moves the underlying stream forward and reads the data from the new stream position, regardless of the iterator's old position in the stream.
The stream's stride defines the granularity for all iterator movement or access operations, i.e. "ici += 1" advances the stream by one stride's worth of tuples, and "*ici++" reads one stride's worth of tuples from the stream.
- Warning:
- Do not read from the underlying stream or its cursor, move its read position, or change its stride, between the time the first icursor_iterator on it is created and the time its last icursor_iterator is destroyed.
Member Typedef Documentation
Constructor & Destructor Documentation
pqxx::icursor_iterator::icursor_iterator |
( |
|
) |
throw () |
|
pqxx::icursor_iterator::icursor_iterator |
( |
istream_type & |
|
) |
throw () [explicit] |
|
Member Function Documentation
const result& pqxx::icursor_iterator::operator * |
( |
|
) |
const |
|
bool pqxx::icursor_iterator::operator!= |
( |
const icursor_iterator & |
rhs |
) |
const throw () |
|
const result* pqxx::icursor_iterator::operator-> |
( |
|
) |
const |
|
Friends And Related Function Documentation
The documentation for this class was generated from the following files:
Generated on Mon Nov 15 11:28:03 2004 for libpqxx by
1.3.9.1