#include <Soprano/BindingSet>
Public Member Functions | |
BindingSet () | |
BindingSet (const BindingSet &other) | |
~BindingSet () | |
BindingSet & | operator= (const BindingSet &) |
QStringList | bindingNames () const |
Node | operator[] (int offset) const |
Node | operator[] (const QString name) const |
Node | value (int offset) const |
Node | value (const QString &name) const |
bool | contains (const QString &name) const |
int | count () const |
void | insert (const QString &name, const Node &value) |
BindingSet is mostly a convenience class for caching of query results.
Definition at line 48 of file bindingset.h.
Soprano::BindingSet::BindingSet | ( | ) |
Create an emtpy set.
Soprano::BindingSet::BindingSet | ( | const BindingSet & | other | ) |
Copy constructor.
Soprano::BindingSet::~BindingSet | ( | ) |
Destructor.
BindingSet& Soprano::BindingSet::operator= | ( | const BindingSet & | ) |
QStringList Soprano::BindingSet::bindingNames | ( | ) | const |
Node Soprano::BindingSet::operator[] | ( | int | offset | ) | const |
Get the binding for a variable by index.
This is equivalent to value(int) const.
Get the binding for a variable.
This is equivalent to value(const QString&) const.
Node Soprano::BindingSet::value | ( | int | offset | ) | const |
Get the binding for a variable by index.
offset | The index of the requested variable. |
Get the binding for a variable.
name | The name of the requested variable. |
bool Soprano::BindingSet::contains | ( | const QString & | name | ) | const |
Check if a certain variable has a binding in this set.
name | The variable name. |
true
if this set contains a binding for the variable name, false
otherwise. int Soprano::BindingSet::count | ( | ) | const |
The number of bindings in this set.
Insert a new binding into the set.