Isis Developer Reference
|
This class is used to bind function names with corresponding Calculator functions that take a parameter. More...
#include <InlineCalculator.h>
Public Types | |
typedef void(InlineCalculator::* | calcOp) (const QVariant &arg) |
Defines an InlineCalculator function that takes arguments. | |
Public Member Functions | |
ParameterFx (const QString &name, calcOp function, InlineCalculator *calculator) | |
Constructs a Parameter function from the given name (containing the appropriate parameters), InlineCalculator operator, and InlineCalculator. | |
virtual | ~ParameterFx () |
Destroys the ParameterFx object. | |
void | dispatch () |
Calls the function corresponding to this object using its stored InlineCalculator, InlineCalculator operator, and arguments. | |
QString | name () const |
The name assigned to this function binder. | |
void | execute () |
Executes the function. | |
void | operator() () |
Executes the function. | |
virtual QVariant | args () |
Accesses the arguments for this function. | |
This class is used to bind function names with corresponding Calculator functions that take a parameter.
typedef void(InlineCalculator::* Isis::ParameterFx::calcOp) (const QVariant &arg) |
Defines an InlineCalculator function that takes arguments.
Isis::ParameterFx::ParameterFx | ( | const QString & | name, |
calcOp | function, | ||
InlineCalculator * | calculator ) |
Constructs a Parameter function from the given name (containing the appropriate parameters), InlineCalculator operator, and InlineCalculator.
name | A string containing a name for this function. Note: The name given should include the parameters to be passed into this function. |
function | An InlineCalculator operator that takes parameters. |
calculator | The InlineCalculator used to evaluate this function. |
|
virtual |
Destroys the ParameterFx object.
|
virtualinherited |
Accesses the arguments for this function.
For scalars and variables, the argument is also the function name.
Referenced by dispatch().
|
virtual |
Calls the function corresponding to this object using its stored InlineCalculator, InlineCalculator operator, and arguments.
Implements Isis::FxBinder.
References Isis::FxBinder::args(), and CALL_MEMBER_FN.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
References Isis::FxBinder::dispatch().
|
inherited |
The name assigned to this function binder.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
References Isis::FxBinder::dispatch().