Isis 3 Programmer Reference
|
This class is used to bind function names with corresponding InlineCalculator functions that do not take parameters. More...
#include <InlineCalculator.h>
Public Types | |
typedef void(InlineCalculator::* | calcOp) () |
Defines an InlineCalculator function that takes no arguments. More... | |
Public Member Functions | |
InlineVoidFx (const QString &name, calcOp function, InlineCalculator *calculator) | |
Constructs an InlineVoid function from the given name, InlineCalculator operator, and InlineCalculator. More... | |
virtual | ~InlineVoidFx () |
Destroys the InlineVoidFx object. More... | |
void | dispatch () |
Calls the function corresponding to this object using its stored InlineCalculator and InlineCalculator operator. More... | |
QString | name () const |
The name assigned to this function binder. More... | |
void | execute () |
Executes the function. More... | |
void | operator() () |
Executes the function. More... | |
virtual QVariant | args () |
Accesses the arguments for this function. More... | |
Private Attributes | |
calcOp | m_func |
The InlineCalculator operator that takes no parameters. More... | |
InlineCalculator * | m_calc |
The InlineCalculator used to evaluate this function. More... | |
QString | m_name |
Name of function. More... | |
This class is used to bind function names with corresponding InlineCalculator functions that do not take parameters.
Definition at line 169 of file InlineCalculator.h.
typedef void(InlineCalculator::* Isis::InlineVoidFx::calcOp) () |
Defines an InlineCalculator function that takes no arguments.
Definition at line 172 of file InlineCalculator.h.
Isis::InlineVoidFx::InlineVoidFx | ( | const QString & | name, |
calcOp | function, | ||
InlineCalculator * | calculator | ||
) |
Constructs an InlineVoid function from the given name, InlineCalculator operator, and InlineCalculator.
name | A string containing a name for this function. |
function | An InlineCalculator operator that takes no arguments. |
calculator | The InlineCalculator used to evaluate this function. |
Definition at line 781 of file InlineCalculator.cpp.
|
virtual |
Destroys the InlineVoidFx object.
Definition at line 791 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 Isis::ParameterFx::dispatch().
|
virtual |
Calls the function corresponding to this object using its stored InlineCalculator and InlineCalculator operator.
Implements Isis::FxBinder.
Definition at line 799 of file InlineCalculator.cpp.
|
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 181 of file InlineCalculator.h.
Referenced by dispatch().
|
private |
The InlineCalculator operator that takes no parameters.
Definition at line 180 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().