Soprano  2.8.0
Public Member Functions | Protected Member Functions | List of all members
Soprano::IteratorBackend< T > Class Template Reference

The actual work in a Iterator instance is done by an IteratorBackend. More...

#include <Soprano/IteratorBackend>

+ Inheritance diagram for Soprano::IteratorBackend< T >:

Public Member Functions

virtual ~IteratorBackend ()
virtual bool next ()=0
virtual T current () const =0
virtual void close ()=0
- Public Member Functions inherited from Soprano::Error::ErrorCache
virtual ~ErrorCache ()
virtual Error lastError () const

Protected Member Functions

 IteratorBackend ()
- Protected Member Functions inherited from Soprano::Error::ErrorCache
 ErrorCache ()
void clearError () const
void setError (const Error &) const
void setError (const QString &errorMessage, int code=ErrorUnknown) const

Detailed Description

template<class T>
class Soprano::IteratorBackend< T >

The actual work in a Iterator instance is done by an IteratorBackend.

Author
Daniele Galdi danie.nosp@m.le.g.nosp@m.aldi@.nosp@m.gmai.nosp@m.l.com
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org

Definition at line 39 of file iteratorbackend.h.

Constructor & Destructor Documentation

template<class T>
virtual Soprano::IteratorBackend< T >::~IteratorBackend ( )
inlinevirtual

Definition at line 42 of file iteratorbackend.h.

template<class T>
Soprano::IteratorBackend< T >::IteratorBackend ( )
inlineprotected

Definition at line 79 of file iteratorbackend.h.

Member Function Documentation

template<class T>
virtual bool Soprano::IteratorBackend< T >::next ( )
pure virtual

Advance to the next element in the iterator.

Implementations of this method should reset the error by eith calling clearError() or setError().

Returns
true if there is another and false if the end has been reached.
See Also
Iterator::next()

Implemented in Soprano::QueryResultIteratorBackend.

template<class T>
virtual T Soprano::IteratorBackend< T >::current ( ) const
pure virtual

Get the element the iterator currently points to.

Implementations of this method should reset the error by eith calling clearError() or setError().

Returns
the current element.
See Also
Iterator::current()

Implemented in Soprano::QueryResultIteratorBackend.

template<class T>
virtual void Soprano::IteratorBackend< T >::close ( )
pure virtual

Close the iterator and release any locks on the underlying Model.

Implementations of this method should reset the error by eith calling clearError() or setError().

See Also
Iterator::close()

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