TreeFrogFramework  2.8
Public Member Functions | List of all members
TSqlQueryORMapperIterator< T > Class Template Reference

#include <tsqlqueryormapperiterator.h>

Public Member Functions

 TSqlQueryORMapperIterator (TSqlQueryORMapper< T > &mapper)
 
bool hasNext () const
 
bool hasPrevious () const
 
next ()
 
previous ()
 
void toBack ()
 
void toFront ()
 
value () const
 

Detailed Description

template<class T>
class TSqlQueryORMapperIterator< T >

The TSqlQueryORMapperIterator class provides a Java-style iterator for TSqlQueryORMapper.

Constructor & Destructor Documentation

◆ TSqlQueryORMapperIterator()

template<class T >
TSqlQueryORMapperIterator< T >::TSqlQueryORMapperIterator ( TSqlQueryORMapper< T > &  mapper)
inline

Constructs a TSqlQueryORMapperIterator object using the mapper mapper.

Member Function Documentation

◆ hasNext()

template<class T >
bool TSqlQueryORMapperIterator< T >::hasNext ( ) const
inline

Returns true if there is at least one object ahead of the iterator; otherwise returns false.

◆ hasPrevious()

template<class T >
bool TSqlQueryORMapperIterator< T >::hasPrevious ( ) const
inline

Returns true if there is at least one object behind the iterator; otherwise returns false.

◆ next()

template<class T >
T TSqlQueryORMapperIterator< T >::next
inline

Returns the next object and advances the iterator by one position.

◆ previous()

template<class T >
T TSqlQueryORMapperIterator< T >::previous
inline

Returns the previous object and moves the iterator back by one position.

◆ toBack()

template<class T >
void TSqlQueryORMapperIterator< T >::toBack ( )
inline

Moves the iterator to the back of the results (after the last object).

◆ toFront()

template<class T >
void TSqlQueryORMapperIterator< T >::toFront ( )
inline

Moves the iterator to the front of the results (before the first object).

◆ value()

template<class T >
T TSqlQueryORMapperIterator< T >::value ( ) const
inline

Returns the current object and does not move the iterator.


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