libpqxx
The C++ client library for PostgreSQL
icursorstream-icursor_iterator.hxx
1 #include <pqxx/internal/callgate.hxx>
2 
3 namespace pqxx::internal::gate
4 {
5 class PQXX_PRIVATE icursorstream_icursor_iterator : callgate<icursorstream>
6 {
7  friend class pqxx::icursor_iterator;
8 
10 
11  void insert_iterator(icursor_iterator *i) noexcept
12  {
13  home().insert_iterator(i);
14  }
15 
16  void remove_iterator(icursor_iterator *i) const noexcept
17  {
18  home().remove_iterator(i);
19  }
20 
21  icursorstream::size_type forward() { return home().forward(); }
22  icursorstream::size_type forward(icursorstream::size_type n)
23  {
24  return home().forward(n);
25  }
26 
27  void service_iterators(icursorstream::difference_type p)
28  {
29  home().service_iterators(p);
30  }
31 };
32 } // namespace pqxx::internal::gate
Simple read-only cursor represented as a stream of results.
Definition: cursor.hxx:278
Definition: connection.hxx:106
Base class for call gates.
Definition: callgate.hxx:54
Approximate istream_iterator for icursorstream.
Definition: cursor.hxx:424
Definition: icursorstream-icursor_iterator.hxx:5