Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
A TupleStreamIterator<Tuple>
is an "Input Iterator" that wraps a RowStreamIterator
, parsing its elements into a sequence of StatusOr<Tuple>
objects.
More...
#include <google/cloud/spanner/row.h>
Public Types | |
Iterator type aliases | |
using | iterator_category = std::input_iterator_tag |
using | value_type = StatusOr< Tuple > |
using | difference_type = std::ptrdiff_t |
using | pointer = value_type * |
using | reference = value_type & |
using | const_pointer = value_type const * |
using | const_reference = value_type const & |
Public Member Functions | |
TupleStreamIterator ()=default | |
Default constructs an "end" iterator. More... | |
TupleStreamIterator (RowStreamIterator begin, RowStreamIterator end) | |
Creates an iterator that wraps the given RowStreamIterator range. More... | |
reference | operator* () |
pointer | operator-> () |
const_reference | operator* () const |
const_pointer | operator-> () const |
TupleStreamIterator & | operator++ () |
TupleStreamIterator | operator++ (int) |
Friends | |
bool | operator== (TupleStreamIterator const &a, TupleStreamIterator const &b) |
bool | operator!= (TupleStreamIterator const &a, TupleStreamIterator const &b) |
A TupleStreamIterator<Tuple>
is an "Input Iterator" that wraps a RowStreamIterator
, parsing its elements into a sequence of StatusOr<Tuple>
objects.
As an Input Iterator, the sequence may only be consumed once. See https://en.cppreference.com/w/cpp/named_req/InputIterator for more details.
Default constructing this object creates an instance that represents "end".
Each Row
returned by the wrapped RowStreamIterator
must be convertible to the specified Tuple
template parameter.
Tuple | the std::tuple<...> to parse each Row into. |
using google::cloud::spanner::TupleStreamIterator< Tuple >::const_pointer = value_type const* |
using google::cloud::spanner::TupleStreamIterator< Tuple >::const_reference = value_type const& |
using google::cloud::spanner::TupleStreamIterator< Tuple >::difference_type = std::ptrdiff_t |
using google::cloud::spanner::TupleStreamIterator< Tuple >::iterator_category = std::input_iterator_tag |
using google::cloud::spanner::TupleStreamIterator< Tuple >::pointer = value_type* |
using google::cloud::spanner::TupleStreamIterator< Tuple >::reference = value_type& |
using google::cloud::spanner::TupleStreamIterator< Tuple >::value_type = StatusOr<Tuple> |
|
default |
Default constructs an "end" iterator.
|
inline |
Creates an iterator that wraps the given RowStreamIterator
range.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |