|
Soprano
2.9.2
|
Represents one set of bindings in the result of a select query. More...
#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) |
| void | replace (int offset, const Node &value) |
| void | replace (const QString &name, const Node &value) |
| bool | operator== (const BindingSet &other) const |
| bool | operator!= (const BindingSet &other) const |
Represents one set of bindings in the result of a select query.
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.
| void Soprano::BindingSet::replace | ( | int | offset, |
| const Node & | value | ||
| ) |
Replaces a value in the binding set.
Replaces a value in the binding set.
| bool Soprano::BindingSet::operator== | ( | const BindingSet & | other | ) | const |
Comparison operator.
| bool Soprano::BindingSet::operator!= | ( | const BindingSet & | other | ) | const |
Comparison operator.
1.8.5