SQLiteXX  0.1.0
 All Classes Namespaces Files Functions Enumerations Enumerator
Public Member Functions | List of all members
sqlite::row_iterator Class Reference

Helps when iterating over rows in a "SELECT" statement. More...

#include <Statement.h>

Public Member Functions

 row_iterator () noexcept=default
 Default constructor.
 
 row_iterator (const statement &statement) noexcept
 Construct a row_iterator object from a statement object. More...
 
row_iteratoroperator++ () noexcept
 Increment iterator to the next row object of the statement.
 
bool operator!= (const row_iterator &other) const noexcept
 Comparison operation.
 
row operator* () const noexcept
 Dereference operation. More...
 

Detailed Description

Helps when iterating over rows in a "SELECT" statement.

row_iterator is a InputIterator and can read data from the pointed to SQLite row.

Definition at line 592 of file Statement.h.

Constructor & Destructor Documentation

sqlite::row_iterator::row_iterator ( const statement statement)
noexcept

Construct a row_iterator object from a statement object.

A row_iterator should only be constructect on an statement object that is doing a SQL "SELECT" query.

Parameters
statementthe statement object to construct the iterator from.

Definition at line 131 of file Statement.cpp.

Member Function Documentation

row sqlite::row_iterator::operator* ( ) const
noexcept

Dereference operation.

Dereferencing a row_iterator object will return a row object.

Definition at line 154 of file Statement.cpp.


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