• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • Nepomuk2
  • Query
  • ResultIterator
Public Member Functions | List of all members
Nepomuk2::Query::ResultIterator Class Reference

#include <Nepomuk2/Query/ResultIterator>

Public Member Functions

 ResultIterator (const QString &sparql, const RequestPropertyMap &map=RequestPropertyMap())
 
 ResultIterator (const Query &query)
 
 ~ResultIterator ()
 
Result current () const
 
bool isValid () const
 
bool next ()
 
Result operator* () const
 
Result result () const
 

Detailed Description

A class to iterate over Nepomuk query results.

Can be used to execute a Nepomuk Query or a traditional sparql query. It returns a Query::Result object which contains an additionalBinding parameter in the case of a sparql query.

Author
Vishesh Handa me@vh.nosp@m.anda.nosp@m..in
Since
4.10

Definition at line 45 of file resultiterator.h.

Constructor & Destructor Documentation

Nepomuk2::Query::ResultIterator::ResultIterator ( const QString &  sparql,
const RequestPropertyMap &  map = RequestPropertyMap() 
)

Constructor used to run sparql queries.

Parameters
mapThe RequestPropertyMap is purely optional and is used if you want to automatically set the requestProperties of the result. It maps the bindings name to the actual property.

Definition at line 50 of file resultiterator.cpp.

Nepomuk2::Query::ResultIterator::ResultIterator ( const Query &  query)

Default constructor to run the Query and get the iterator.

Definition at line 41 of file resultiterator.cpp.

Nepomuk2::Query::ResultIterator::~ResultIterator ( )

Definition at line 61 of file resultiterator.cpp.

Member Function Documentation

Nepomuk2::Query::Result Nepomuk2::Query::ResultIterator::current ( ) const

Definition at line 67 of file resultiterator.cpp.

bool Nepomuk2::Query::ResultIterator::isValid ( ) const

Check if the iterator is in a valid state.

Returns
true if the iterator is valid

Definition at line 105 of file resultiterator.cpp.

bool Nepomuk2::Query::ResultIterator::next ( )

Get the next result.

Returns
true if there are any more results and false otherwise

Definition at line 100 of file resultiterator.cpp.

Nepomuk2::Query::Result Nepomuk2::Query::ResultIterator::operator* ( ) const

Definition at line 110 of file resultiterator.cpp.

Nepomuk2::Query::Result Nepomuk2::Query::ResultIterator::result ( ) const

Definition at line 115 of file resultiterator.cpp.


The documentation for this class was generated from the following files:
  • resultiterator.h
  • resultiterator.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal