libpqxx
The C++ client library for PostgreSQL
icursor_iterator-icursorstream.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 namespace pqxx::internal::gate
4 {
5 class PQXX_PRIVATE icursor_iterator_icursorstream : callgate<icursor_iterator>
6 {
7  friend class pqxx::icursorstream;
8 
10 
11  icursor_iterator::difference_type pos() const noexcept
12  {
13  return home().pos();
14  }
15 
16  icursor_iterator *get_prev() { return home().m_prev; }
17  void set_prev(icursor_iterator *i) { home().m_prev = i; }
18 
19  icursor_iterator *get_next() { return home().m_next; }
20  void set_next(icursor_iterator *i) { home().m_next = i; }
21 
22  void fill(result const &r) { home().fill(r); }
23 };
24 } // namespace pqxx::internal::gate
Definition: icursor_iterator-icursorstream.hxx:5
Simple read-only cursor represented as a stream of results.
Definition: cursor.hxx:278
Result set containing data returned by a query or command.
Definition: result.hxx:91
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Approximate istream_iterator for icursorstream.
Definition: cursor.hxx:424