Models a Sparql variable. More...
Public Member Functions | |
Variable () | |
Constructs a variable with an automatically assigned name. | |
CUBI_EXPLICIT | Variable (const QString &name) |
Constructs a varible from its name . | |
QString | name () const |
Returns the variable's name. | |
void | setName (const QString &name) |
Sets the name of the variable. | |
Static Public Member Functions | |
static Variable | create () |
Constructs a variable with an automatically assigned name (as Variable() does). | |
static Variable | invalid () |
Constructs an invalid Variable. | |
Protected Member Functions | |
Variable (VariableData *data) |
Models a Sparql variable.
Variable::Variable | ( | ) |
Constructs a variable with an automatically assigned name.
Variable Variable::create | ( | ) | [static] |
Constructs a variable with an automatically assigned name (as Variable() does).
QString Variable::name | ( | ) | const |
Returns the variable's name.
Note the the original name and the name in the generated Sparql differ, this is because Cubi prefixes user variable names with an _, in order to avoid name clashes with the variables it generates.