• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

soprano

Soprano::IteratorBackend

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 >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

 IteratorBackend ()

Detailed Description

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

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

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

Definition at line 39 of file iteratorbackend.h.


Constructor & Destructor Documentation

template<class T>
virtual Soprano::IteratorBackend< T >::~IteratorBackend (  )  [inline, virtual]

Definition at line 42 of file iteratorbackend.h.

template<class T>
Soprano::IteratorBackend< T >::IteratorBackend (  )  [inline, protected]

Definition at line 79 of file iteratorbackend.h.


Member Function Documentation

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()
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 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.


The documentation for this class was generated from the following file:
  • iteratorbackend.h

soprano

Skip menu "soprano"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal