libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
icursorstream-icursor_iterator.hxx
1#include <pqxx/internal/callgate.hxx>
2
3namespace pqxx::internal::gate
4{
5class 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
Base class for call gates.
Definition callgate.hxx:55
icursorstream & reference
A reference to the host class. Helps keep constructors easy.
Definition callgate.hxx:60
Definition icursorstream-icursor_iterator.hxx:6