Represents a prefix function. More...
Public Member Functions | |
CUBI_EXPLICIT | PrefixFunction (const QString &name) |
Construts a prefix function from its name. | |
void | setName (const QString &name) |
Sets the name of the function. | |
QString | name () const |
Returns the name of the function. | |
PrefixFunction | apply (const ValueChain &values) const |
Applies the given values as parameters of the function. | |
PrefixFunction | apply (const Value &v1) const |
Applies the function to v1 . | |
PrefixFunction | apply (const Value &v1, const Value &v2) const |
Applies the function to v1 and v2 . | |
PrefixFunction | apply (const Value &v1, const Value &v2, const Value &v3) const |
Applies the function to v1 , v2 and v3 . |
Represents a prefix function.
Prefix functions can have an arbitrary number of parameters.
PrefixFunction PrefixFunction::apply | ( | const ValueChain & | values | ) | const |
Applies the given values
as parameters of the function.
Returns a new PrefixFunction with the parameters set (see Function documentation).
PrefixFunction PrefixFunction::apply | ( | const Value & | v1 | ) | const |
Applies the function to v1
.
Returns a new PrefixFunction with the parameters set (see Function documentation).
PrefixFunction PrefixFunction::apply | ( | const Value & | v1, | |
const Value & | v2 | |||
) | const |
Applies the function to v1
and v2
.
Returns a new PrefixFunction with the parameters set (see Function documentation).
PrefixFunction PrefixFunction::apply | ( | const Value & | v1, | |
const Value & | v2, | |||
const Value & | v3 | |||
) | const |
Applies the function to v1
, v2
and v3
.
Returns a new PrefixFunction with the parameters set (see Function documentation).