Hyper API for C++  0.0.16638
Hyper client library for C++ applications
hyperapi::ResultIterator Class Referencefinal

Iterates over a hyperapi::Result in rows (hyperapi::Row). More...

#include <Result.hpp>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = Row
 
using difference_type = std::ptrdiff_t
 
using pointer = const Row *
 
using reference = const Row &
 

Public Member Functions

 ResultIterator (Result &result, IteratorBeginTag)
 Constructs the begin-iterator.
 
 ResultIterator (Result &result, IteratorEndTag) noexcept
 Constructs the end-iterator.
 
reference operator* () const noexcept
 Returns a reference to the current value.
 
pointer operator-> () const noexcept
 Returns a pointer to the current value.
 
ResultIteratoroperator++ ()
 Advances the iterator.
 

Friends

bool operator== (const ResultIterator &lhs, const ResultIterator &rhs) noexcept
 Comparison operator.
 
bool operator!= (const ResultIterator &lhs, const ResultIterator &rhs) noexcept
 Comparison operator.
 

Detailed Description

Iterates over a hyperapi::Result in rows (hyperapi::Row).

ResultIterator is a single-pass input iterator. It reads successive rows of type hyperapi::Row from the hyperapi::Result from which it was constructed.

Definition at line 550 of file Result.hpp.


The documentation for this class was generated from the following file: