libpqxx
The C++ client library for PostgreSQL
icursorstream-icursor_iterator.hxx
Go to the documentation of this file.
2 
3 namespace pqxx::internal::gate
4 {
6  : callgate<icursorstream>
7 {
8  friend class pqxx::icursor_iterator;
9 
10  constexpr icursorstream_icursor_iterator(reference x) noexcept : super(x) {}
11 
12  void insert_iterator(icursor_iterator *i) noexcept
13  {
14  home().insert_iterator(i);
15  }
16 
17  void remove_iterator(icursor_iterator *i) const noexcept
18  {
19  home().remove_iterator(i);
20  }
21 
22  icursorstream::size_type forward() { return home().forward(); }
24  {
25  return home().forward(n);
26  }
27 
28  void service_iterators(icursorstream::difference_type p, sl loc)
29  {
30  home().service_iterators(p, loc);
31  }
32 };
33 } // namespace pqxx::internal::gate
Approximate istream_iterator for icursorstream.
Definition: cursor.hxx:449
Simple read-only cursor represented as a stream of results.
Definition: cursor.hxx:296
cursor_base::size_type size_type
Definition: cursor.hxx:298
cursor_base::difference_type difference_type
Definition: cursor.hxx:299
Base class for call gates.
Definition: callgate.hxx:55
Definition: icursorstream-icursor_iterator.hxx:7
#define PQXX_PRIVATE
Definition: header-pre.hxx:206
Definition: connection.hxx:94
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38