Represents an infix function. More...
Public Member Functions | |
CUBI_EXPLICIT | InfixFunction (const QString &name) |
Constructs an infix function from its name . | |
bool | operator== (const InfixFunction &other) const |
void | setName (const QString &name) |
Sets the name of the function. | |
QString | name () const |
Returns the name of the function. | |
InfixFunction | apply (const ValueChain &values) const |
Applies the given values as parameters of the function. | |
InfixFunction | apply (const Value &v1) const |
Applies the function to v1 . | |
InfixFunction | apply (const Value &v1, const Value &v2) const |
Applies the function to v1 and v2 . | |
InfixFunction | apply (const Value &v1, const Value &v2, const Value &v3) const |
Applies the function to v1 , v2 and v3 . |
Represents an infix function.
Infix functions are generally used for Sparql operators like =, >, IN
...
InfixFunction InfixFunction::apply | ( | const ValueChain & | values | ) | const |
Applies the given values
as parameters of the function.
Returns a new InfixFunction with the parameters set (see Function documentation).
InfixFunction InfixFunction::apply | ( | const Value & | v1, | |
const Value & | v2, | |||
const Value & | v3 | |||
) | const |
Applies the function to v1
, v2
and v3
.
Returns a new InfixFunction with the parameters set (see Function documentation).
InfixFunction InfixFunction::apply | ( | const Value & | v1 | ) | const |
Applies the function to v1
.
Returns a new InfixFunction with the parameters set (see Function documentation).
InfixFunction InfixFunction::apply | ( | const Value & | v1, | |
const Value & | v2 | |||
) | const |
Applies the function to v1
and v2
.
Returns a new InfixFunction with the parameters set (see Function documentation).