Google Cloud C++ Client 2.10.1
C++ Client Library for Google Cloud Platform
|
A StreamRange<T>
is a range of StatusOr<T>
where the end-of-stream is indicated by a non-OK Status
.
More...
#include <google/cloud/stream_range.h>
Classes | |
class | IteratorImpl |
An input iterator for a StreamRange<T> – DO NOT USE DIRECTLY. More... | |
Public Types | |
using | value_type = StatusOr< T > |
using | iterator = IteratorImpl< value_type > |
using | difference_type = typename iterator::difference_type |
using | reference = typename iterator::reference |
using | pointer = typename iterator::pointer |
using | const_reference = typename iterator::const_reference |
using | const_pointer = typename iterator::const_pointer |
Public Member Functions | |
StreamRange ()=default | |
Default-constructs an empty range. More... | |
~StreamRange () | |
iterator | begin () |
iterator | end () |
Move-only | |
StreamRange (StreamRange const &)=delete | |
StreamRange & | operator= (StreamRange const &)=delete |
StreamRange (StreamRange &&)=default | |
StreamRange & | operator= (StreamRange &&)=default |
A StreamRange<T>
is a range of StatusOr<T>
where the end-of-stream is indicated by a non-OK Status
.
Callers can iterate the range using its begin()
and end()
members to access iterators that will work with any normal C++ constructs and algorithms that accept Input Iterators.
Callers should only consume/iterate this range.
StreamRange<T>
for testing (e.g. to mock a Connection::ListFoo
call), see google::cloud::mocks::MakeStreamRange. using google::cloud::StreamRange< T >::const_pointer = typename iterator::const_pointer |
using google::cloud::StreamRange< T >::const_reference = typename iterator::const_reference |
using google::cloud::StreamRange< T >::difference_type = typename iterator::difference_type |
using google::cloud::StreamRange< T >::iterator = IteratorImpl<value_type> |
using google::cloud::StreamRange< T >::pointer = typename iterator::pointer |
using google::cloud::StreamRange< T >::reference = typename iterator::reference |
using google::cloud::StreamRange< T >::value_type = StatusOr<T> |
|
default |
Default-constructs an empty range.
|
inline |
|
delete |
|
default |
|
inline |
|
inline |
|
default |
|
delete |