libpqxx
The C++ client library for PostgreSQL
icursor_iterator-icursorstream.hxx
Go to the documentation of this file.
2 
3 namespace pqxx::internal::gate
4 {
6  : callgate<icursor_iterator>
7 {
8  friend class pqxx::icursorstream;
9 
10  constexpr icursor_iterator_icursorstream(reference x) noexcept : super(x) {}
11 
12  icursor_iterator::difference_type pos() const noexcept
13  {
14  return home().pos();
15  }
16 
17  [[nodiscard]] icursor_iterator *get_prev() const noexcept
18  {
19  return home().m_prev;
20  }
21  void set_prev(icursor_iterator *i) noexcept { home().m_prev = i; }
22 
23  [[nodiscard]] icursor_iterator *get_next() const noexcept
24  {
25  return home().m_next;
26  }
27  void set_next(icursor_iterator *i) { home().m_next = i; }
28 
29  void fill(result const &r) { home().fill(r); }
30 };
31 } // namespace pqxx::internal::gate
Approximate istream_iterator for icursorstream.
Definition: cursor.hxx:449
istream_type::difference_type difference_type
Definition: cursor.hxx:457
Simple read-only cursor represented as a stream of results.
Definition: cursor.hxx:296
Base class for call gates.
Definition: callgate.hxx:55
Definition: icursor_iterator-icursorstream.hxx:7
#define PQXX_PRIVATE
Definition: header-pre.hxx:206
Definition: connection.hxx:94