![]() |
Isis 3 Programmer 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. | |
Private Attributes | |
| calcOp | m_func |
| The InlineCalculator operator that takes parameters. | |
| InlineCalculator * | m_calc |
| The InlineCalculator used to evaluate this function. | |
| QString | m_name |
| Name of function. | |
This class is used to bind function names with corresponding Calculator functions that take a parameter.
Definition at line 193 of file InlineCalculator.h.
| typedef void(InlineCalculator::* Isis::ParameterFx::calcOp) (const QVariant &arg) |
Defines an InlineCalculator function that takes arguments.
Definition at line 196 of file InlineCalculator.h.
| 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. |
Definition at line 815 of file InlineCalculator.cpp.
|
virtual |
Destroys the ParameterFx object.
Definition at line 825 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 768 of file InlineCalculator.cpp.
References Isis::FxBinder::m_name.
Referenced by dispatch().
|
virtual |
Calls the function corresponding to this object using its stored InlineCalculator, InlineCalculator operator, and arguments.
Implements Isis::FxBinder.
Definition at line 834 of file InlineCalculator.cpp.
References Isis::FxBinder::args(), m_calc, and m_func.
|
inherited |
Executes the function.
This method is a wrapper for the virtual dispatch method.
Definition at line 748 of file InlineCalculator.cpp.
References Isis::FxBinder::dispatch().
|
inherited |
The name assigned to this function binder.
Definition at line 739 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 757 of file InlineCalculator.cpp.
References Isis::FxBinder::dispatch().
|
private |
The InlineCalculator used to evaluate this function.
Definition at line 205 of file InlineCalculator.h.
Referenced by dispatch().
|
private |
The InlineCalculator operator that takes parameters.
Definition at line 204 of file InlineCalculator.h.
Referenced by dispatch().
|
privateinherited |
Name of function.
Definition at line 157 of file InlineCalculator.h.
Referenced by Isis::FxBinder::args(), and Isis::FxBinder::name().