Couchbase Lite C++
Couchbase Lite C++ API
Loading...
Searching...
No Matches
cbl::ResultSetIterator Class Reference

Single-pass iterator over a ResultSet, yielding each Result in turn. More...

#include <cbl++/Query.hh>

Public Member Functions

const Resultoperator* () const
 Returns the current Result.
const Resultoperator-> () const
 Allows access to the current Result via ->.
bool operator== (const ResultSetIterator &i) const
 Returns true if both iterators reference the same underlying result set position.
bool operator!= (const ResultSetIterator &i) const
 Returns true if the iterators differ.
ResultSetIteratoroperator++ ()
 Advances to the next result, or to end-of-results if there are no more.

Protected Member Functions

 ResultSetIterator ()
 ResultSetIterator (ResultSet rs)

Protected Attributes

ResultSet _rs
Result _result

Friends

class ResultSet

Detailed Description

Single-pass iterator over a ResultSet, yielding each Result in turn.

Obtained via ResultSet::begin and ResultSet::end.

Constructor & Destructor Documentation

◆ ResultSetIterator() [1/2]

cbl::ResultSetIterator::ResultSetIterator ( )
inlineprotected

◆ ResultSetIterator() [2/2]

cbl::ResultSetIterator::ResultSetIterator ( ResultSet rs)
inlineexplicitprotected

Member Function Documentation

◆ operator!=()

bool cbl::ResultSetIterator::operator!= ( const ResultSetIterator & i) const
inline

Returns true if the iterators differ.

◆ operator*()

const Result & cbl::ResultSetIterator::operator* ( ) const
inline

Returns the current Result.

◆ operator++()

ResultSetIterator & cbl::ResultSetIterator::operator++ ( )
inline

Advances to the next result, or to end-of-results if there are no more.

◆ operator->()

const Result & cbl::ResultSetIterator::operator-> ( ) const
inline

Allows access to the current Result via ->.

◆ operator==()

bool cbl::ResultSetIterator::operator== ( const ResultSetIterator & i) const
inline

Returns true if both iterators reference the same underlying result set position.

◆ ResultSet

friend class ResultSet
friend

Member Data Documentation

◆ _result

Result cbl::ResultSetIterator::_result
protected

◆ _rs

ResultSet cbl::ResultSetIterator::_rs
protected

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