Nepomuk-Core
#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.
- 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
-
map The 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 andfalse
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:
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.