This class is used to bind function names with corresponding Calculator functions that do not take parameters. More...
#include <InlineCalculator.h>


Public Types | |
| typedef void(Calculator::* | calcOp) () |
| Defines a Calculator function that takes no arguments. | |
Public Member Functions | |
| VoidFx (const QString &name, calcOp function, InlineCalculator *calculator) | |
| Constructs a Void function from the given name, Calculator operator, and Calculator. | |
| virtual | ~VoidFx () |
| Destroys the VoidFx object. | |
| void | dispatch () |
| Calls the function corresponding to this object using its stored Calculator and Calculator operator. | |
| 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 do not take parameters.
| typedef void(Calculator::* Isis::VoidFx::calcOp) () |
Defines a Calculator function that takes no arguments.
| Isis::VoidFx::VoidFx | ( | const QString & | name, |
| calcOp | function, | ||
| InlineCalculator * | calculator ) |
Constructs a Void function from the given name, Calculator operator, and Calculator.
| name | A string containing a name for this function. |
| function | A Calculator operator that takes no arguments. |
| calculator | The Calculator used to evaluate this function. |
References Isis::FxBinder::FxBinder(), and Isis::FxBinder::name().
|
virtual |
Destroys the VoidFx object.
|
virtualinherited |
Accesses the arguments for this function.
For scalars and variables, the argument is also the function name.
Referenced by Isis::ParameterFx::dispatch().
|
virtual |
Calls the function corresponding to this object using its stored Calculator and Calculator operator.
Implements Isis::FxBinder.
References CALL_MEMBER_FN.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
References dispatch().
|
inherited |
The name assigned to this function binder.
Referenced by FxBinder(), Isis::InlineVoidFx::InlineVoidFx(), Isis::ParameterFx::ParameterFx(), and Isis::VoidFx::VoidFx().
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
References dispatch().