TreeFrogFramework: src/tsqlormapperiterator.h Source File
Go to the documentation of this file.
11 bool hasNext() const { return i >= 0 && i < m->rowCount(); }
12 bool hasPrevious() const { return i > 0 && i <= m->rowCount(); }
23 void toBack() { i = n = m->rowCount(); }
The TSqlORMapperIterator class provides a Java-style iterator for TSqlORMapper.
Definition tsqlormapperiterator.h:6
T next()
Returns the next object and advances the iterator by one position.
Definition tsqlormapperiterator.h:13
T value() const
Returns the current object and does not move the iterator.
Definition tsqlormapperiterator.h:29
TSqlORMapperIterator(const TSqlORMapper< T > &mapper)
Constructor.
Definition tsqlormapperiterator.h:8
bool hasNext() const
Returns true if there is at least one object ahead of the iterator; otherwise returns false.
Definition tsqlormapperiterator.h:11
void toFront()
Moves the iterator to the front of the results (before the first object).
Definition tsqlormapperiterator.h:24
T previous()
Returns the previous object and moves the iterator back by one position.
Definition tsqlormapperiterator.h:18
void toBack()
Moves the iterator to the back of the results (after the last object).
Definition tsqlormapperiterator.h:23
bool hasPrevious() const
Returns true if there is at least one object behind the iterator; otherwise returns false.
Definition tsqlormapperiterator.h:12
The TSqlORMapper class is a template class that provides concise functionality to object-relational m...
Definition tsqlormapper.h:53