# class IteratorBackend

### abstract

Module | soprano
Namespace | Soprano
Class | IteratorBackend
Inherits | Soprano::Error::ErrorCache

\class IteratorBackend iteratorbackend.h Soprano/IteratorBackend

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

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

### methods

- IteratorBackend ( )

  returns ctor

- close ( )

  returns Nothing
  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()

- current ( )

  returns T
  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()

- next ( )

  returns bool
  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()