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.
The iterator has no concept of its own position, however. Moving an iterator forward moves the underlying stream forward and reads the data from the new position, regardless of "where the iterator was" in the stream. Comparison of iterators is only supported for detecting the end of a stream.
- Warning:
- This code is experimental. It is not fully covered by libpqxx' regression tests, and may see considerable change before becoming part of a stable release. Do not use except to test it.
Member Typedef Documentation
Constructor & Destructor Documentation
pqxx::icursor_iterator::icursor_iterator |
( |
|
) |
|
|
pqxx::icursor_iterator::icursor_iterator |
( |
istream_type & |
s |
) |
|
|
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 |
|
bool pqxx::icursor_iterator::operator== |
( |
const icursor_iterator & |
rhs |
) |
const throw () |
|
The documentation for this class was generated from the following file:
Generated on Sat Aug 21 03:39:34 2004 for libpqxx by
1.3.8