Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
A RowStreamIterator
is an Input Iterator (see below) that returns a sequence of StatusOr<Row>
objects.
More...
#include <google/cloud/spanner/row.h>
Public Types | |
using | Source = std::function< StatusOr< Row >()> |
A function that returns a sequence of StatusOr<Row> objects. More... | |
Iterator type aliases | |
using | iterator_category = std::input_iterator_tag |
using | value_type = StatusOr< Row > |
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 | |
RowStreamIterator () | |
Default constructs an "end" iterator. More... | |
RowStreamIterator (Source source) | |
Constructs a RowStreamIterator that will consume rows from the given source , which must not be nullptr . More... | |
reference | operator* () |
pointer | operator-> () |
const_reference | operator* () const |
const_pointer | operator-> () const |
RowStreamIterator & | operator++ () |
RowStreamIterator | operator++ (int) |
Friends | |
bool | operator== (RowStreamIterator const &, RowStreamIterator const &) |
bool | operator!= (RowStreamIterator const &, RowStreamIterator const &) |
A RowStreamIterator
is an Input Iterator (see below) that returns a sequence of StatusOr<Row>
objects.
As an Input Iterator, the sequence may only be consumed once. Default constructing a RowStreamIterator
creates an instance that represents "end".
using google::cloud::spanner::RowStreamIterator::difference_type = std::ptrdiff_t |
using google::cloud::spanner::RowStreamIterator::iterator_category = std::input_iterator_tag |
using google::cloud::spanner::RowStreamIterator::Source = std::function<StatusOr<Row>()> |
google::cloud::spanner::RowStreamIterator::RowStreamIterator | ( | ) |
Default constructs an "end" iterator.
|
explicit |
Constructs a RowStreamIterator
that will consume rows from the given source
, which must not be nullptr
.
|
inline |
|
inline |
RowStreamIterator & google::cloud::spanner::RowStreamIterator::operator++ | ( | ) |
RowStreamIterator google::cloud::spanner::RowStreamIterator::operator++ | ( | int | ) |
|
inline |
|
inline |
|
friend |
|
friend |