libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
pqxx::internal::stream_query_input_iterator< TYPE > Class Template Reference

Input iterator for stream_query. More...

Public Types

using value_type = std::tuple<TYPE...>
using difference_type = long

Public Member Functions

 stream_query_input_iterator (stream_t &home)
 stream_query_input_iterator (stream_query_input_iterator const &)=default
 stream_query_input_iterator (stream_query_input_iterator &&)=default
stream_query_input_iteratoroperator++ () &
 Pre-increment. This is what you'd normally want to use.
stream_query_input_iterator operator++ (int)
 Post-increment. Only here to satisfy input_iterator concept.
value_type operator* () const
 Dereference. There's no caching in here, so don't repeat calls.
bool operator== (stream_query_end_iterator) const noexcept
 Are we at the end?
bool operator!= (stream_query_end_iterator) const noexcept
 Comparison only works for comparing to end().
stream_query_input_iteratoroperator= (stream_query_input_iterator &&rhs) noexcept

Detailed Description

template<typename... TYPE>
class pqxx::internal::stream_query_input_iterator< TYPE >

Input iterator for stream_query.

Just barely enough to support range-based "for" loops on stream_from. Don't assume that any of the usual behaviour works beyond that.

Member Typedef Documentation

◆ difference_type

template<typename... TYPE>
using pqxx::internal::stream_query_input_iterator< TYPE >::difference_type = long

◆ value_type

template<typename... TYPE>
using pqxx::internal::stream_query_input_iterator< TYPE >::value_type = std::tuple<TYPE...>

Constructor & Destructor Documentation

◆ stream_query_input_iterator() [1/3]

template<typename... TYPE>
pqxx::internal::stream_query_input_iterator< TYPE >::stream_query_input_iterator ( stream_t & home)
inlineexplicit

◆ stream_query_input_iterator() [2/3]

template<typename... TYPE>
pqxx::internal::stream_query_input_iterator< TYPE >::stream_query_input_iterator ( stream_query_input_iterator< TYPE > const & )
default

◆ stream_query_input_iterator() [3/3]

template<typename... TYPE>
pqxx::internal::stream_query_input_iterator< TYPE >::stream_query_input_iterator ( stream_query_input_iterator< TYPE > && )
default

Member Function Documentation

◆ operator!=()

template<typename... TYPE>
bool pqxx::internal::stream_query_input_iterator< TYPE >::operator!= ( stream_query_end_iterator ) const
inlinenoexcept

Comparison only works for comparing to end().

◆ operator*()

template<typename... TYPE>
value_type pqxx::internal::stream_query_input_iterator< TYPE >::operator* ( ) const
inline

Dereference. There's no caching in here, so don't repeat calls.

◆ operator++() [1/2]

template<typename... TYPE>
stream_query_input_iterator & pqxx::internal::stream_query_input_iterator< TYPE >::operator++ ( ) &
inline

Pre-increment. This is what you'd normally want to use.

◆ operator++() [2/2]

template<typename... TYPE>
stream_query_input_iterator pqxx::internal::stream_query_input_iterator< TYPE >::operator++ ( int )
inline

Post-increment. Only here to satisfy input_iterator concept.

The iterator that this returns is in an unusable state.

◆ operator=()

template<typename... TYPE>
stream_query_input_iterator & pqxx::internal::stream_query_input_iterator< TYPE >::operator= ( stream_query_input_iterator< TYPE > && rhs)
inlinenoexcept

◆ operator==()

template<typename... TYPE>
bool pqxx::internal::stream_query_input_iterator< TYPE >::operator== ( stream_query_end_iterator ) const
inlinenoexcept

Are we at the end?


The documentation for this class was generated from the following file:
  • /builddir/build/BUILD/libpqxx-7.10.5-build/libpqxx-7.10.5/redhat-linux-build/include/pqxx/internal/stream_query_impl.hxx