Isis 3 Programmer Reference
|
This is a simple class to model a Calculator Variable Pool. More...
#include <InlineCalculator.h>
Public Member Functions | |
CalculatorVariablePool () | |
Constructs a CalculatorVariablePool object. More... | |
~CalculatorVariablePool () | |
Destroys the CalculatorVariablePool object. More... | |
virtual bool | exists (const QString &variable) const |
Returns true so the real error can be reported. More... | |
virtual QVector< double > | value (const QString &variable, const int &index=0) const |
Return vector of doubles for Calculator functions. More... | |
virtual void | add (const QString &key, QVector< double > &values) |
Add a parameter to the variable pool. More... | |
This is a simple class to model a Calculator Variable Pool.
Definition at line 139 of file InlineCalculator.h.
Isis::CalculatorVariablePool::CalculatorVariablePool | ( | ) |
Constructs a CalculatorVariablePool object.
Definition at line 676 of file InlineCalculator.cpp.
Isis::CalculatorVariablePool::~CalculatorVariablePool | ( | ) |
Destroys the CalculatorVariablePool object.
Definition at line 683 of file InlineCalculator.cpp.
|
virtual |
Add a parameter to the variable pool.
Some implementations can take advantage of this if desired but it is not standard.
key | A string containing the name of the parameter to be added. |
values | A vector of double precision values to be added to the variable pool. |
IException::Programmer | "No implementation in Calculator variable pool to add value for variable." |
Definition at line 728 of file InlineCalculator.cpp.
References _FILEINFO_, and Isis::IException::Programmer.
|
virtual |
Returns true so the real error can be reported.
variable | A string containing the variable we are looking for. |
Definition at line 693 of file InlineCalculator.cpp.
Referenced by Isis::InlineCalculator::variable().
|
virtual |
Return vector of doubles for Calculator functions.
variable | A string containing the variable. |
index | The location in the pool. |
IException::Programmer | "No implementation in Calculator variable pool to provide value for variable." |
Definition at line 708 of file InlineCalculator.cpp.
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by Isis::InlineCalculator::variable().