lintel 0.2.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lintel::db::Cursor::Iterator Class Reference

#include <Cursor.h>

Public Types

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

Public Member Functions

 Iterator (Cursor &cursor, bool end=false)
 
Iterator & operator++ ()
 
const Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 
reference operator* () const
 

Detailed Description

Mutable forward iterator over streamed rows. Single-pass input-iterator semantics: copies share the stream position, so only one iterator should be advanced at a time and comparison is only meaningful against end().

Member Typedef Documentation

◆ difference_type

◆ iterator_category

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator()

lintel::db::Cursor::Iterator::Iterator ( Cursor &  cursor,
bool  end = false 
)
explicit

Constructs an iterator for the given cursor.

Parameters
cursorthe cursor to iterate over
endif true, positions at the logical end; otherwise at the cursor's current row

Member Function Documentation

◆ operator!=()

bool lintel::db::Cursor::Iterator::operator!= ( const Iterator &  other) const

◆ operator*()

reference lintel::db::Cursor::Iterator::operator* ( ) const

◆ operator++() [1/2]

Iterator & lintel::db::Cursor::Iterator::operator++ ( )

◆ operator++() [2/2]

const Iterator lintel::db::Cursor::Iterator::operator++ ( int  )

◆ operator==()

bool lintel::db::Cursor::Iterator::operator== ( const Iterator &  other) const

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