Isis 3.0 Object Programmers' Reference |
Home |
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. |
Private Attributes | |
calcOp | m_func |
The Calculator operator that takes no parameters. | |
InlineCalculator * | m_calc |
The Calculator used to evaluate this function. |
This class is used to bind function names with corresponding Calculator functions that do not take parameters.
Definition at line 232 of file InlineCalculator.h.
typedef void(Calculator::* Isis::VoidFx::calcOp)() |
Defines a Calculator function that takes no arguments.
Definition at line 235 of file InlineCalculator.h.
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. |
Definition at line 814 of file InlineCalculator.cpp.
|
virtual |
Destroys the VoidFx object.
Definition at line 824 of file InlineCalculator.cpp.
|
virtualinherited |
Accesses the arguments for this function.
For scalars and variables, the argument is also the function name.
Definition at line 735 of file InlineCalculator.cpp.
References Isis::FxBinder::m_name.
Referenced by Isis::ParameterFx::dispatch().
|
virtual |
Calls the function corresponding to this object using its stored Calculator and Calculator operator.
Implements Isis::FxBinder.
Definition at line 832 of file InlineCalculator.cpp.
References CALL_MEMBER_FN, m_calc, and m_func.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
Definition at line 715 of file InlineCalculator.cpp.
References Isis::FxBinder::dispatch().
|
inherited |
The name assigned to this function binder.
Definition at line 706 of file InlineCalculator.cpp.
References Isis::FxBinder::m_name.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
Definition at line 724 of file InlineCalculator.cpp.
References Isis::FxBinder::dispatch().
|
private |
The Calculator used to evaluate this function.
Definition at line 244 of file InlineCalculator.h.
Referenced by dispatch().
|
private |
The Calculator operator that takes no parameters.
Definition at line 243 of file InlineCalculator.h.
Referenced by dispatch().