Soprano  2.7.6
Public Member Functions | Protected Member Functions
Soprano::IteratorBackend Class Reference

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

#include <Soprano/IteratorBackend>

+ Inheritance diagram for Soprano::IteratorBackend:

List of all members.

Public Member Functions

virtual ~IteratorBackend ()
virtual bool next ()=0
virtual T current () const =0
virtual void close ()=0

Protected Member Functions

 IteratorBackend ()

Detailed Description

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

Author:
Daniele Galdi <daniele.galdi@gmail.com>
Sebastian Trueg <trueg@kde.org>

Constructor & Destructor Documentation

virtual Soprano::IteratorBackend::~IteratorBackend ( ) [inline, virtual]

Definition at line 42 of file iteratorbackend.h.

Soprano::IteratorBackend::IteratorBackend ( ) [inline, protected]

Definition at line 79 of file iteratorbackend.h.


Member Function Documentation

virtual bool Soprano::IteratorBackend::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.

virtual T Soprano::IteratorBackend::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.

virtual void Soprano::IteratorBackend::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: