Belle II Software development
|
Iterator class to allow iterating over the rows. More...
#include <sqlite.h>
Public Types | |
using | iterator_category = std::input_iterator_tag |
Iterator category. | |
using | value_type = ObjectType |
Value type. | |
using | difference_type = size_t |
Difference type. | |
using | pointer = value_type * |
Pointer. | |
using | reference = value_type & |
Reference. | |
Public Member Functions | |
iterator ()=default | |
with a default constructor | |
iterator (ObjectStatement *instance) | |
and a real constructor to a statement | |
iterator & | operator++ () |
increment to next row, stop in case we are done | |
iterator | operator++ (int) |
also postfix increment | |
bool | operator== (const iterator &other) const |
and equality check | |
bool | operator!= (const iterator &other) const |
as well as unequality check | |
value_type | operator* () const |
and a dereference operator | |
Private Attributes | |
ObjectStatement * | m_instance {nullptr} |
pointer to the statement | |
int64_t | m_row { -1} |
current row index | |
Iterator class to allow iterating over the rows.
using difference_type = size_t |
using iterator_category = std::input_iterator_tag |
using pointer = value_type* |
using reference = value_type& |
using value_type = ObjectType |
|
inlineexplicit |
and a real constructor to a statement
Definition at line 221 of file sqlite.h.
|
inline |
|
inline |
and a dereference operator
Definition at line 240 of file sqlite.h.
|
inline |
|
inline |
|
private |