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