Public Member Functions

PrefixFunction Class Reference

Represents a prefix function. More...

Inheritance diagram for PrefixFunction:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Represents a prefix function.

Prefix functions can have an arbitrary number of parameters.


Member Function Documentation

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).


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