Public Member Functions | Static Public Member Functions | Protected Member Functions

Variable Class Reference

Models a Sparql variable. More...

Inheritance diagram for Variable:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

Models a Sparql variable.


Constructor & Destructor Documentation

Variable::Variable (  ) 

Constructs a variable with an automatically assigned name.

See also:
Variable::create()

Member Function Documentation

Variable Variable::create (  )  [static]

Constructs a variable with an automatically assigned name (as Variable() does).

See also:
Variable()
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.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations