Isis Developer Reference
Isis::CalculatorVariablePool Class Reference

This is a simple class to model a Calculator Variable Pool. More...

#include <InlineCalculator.h>

Collaboration diagram for Isis::CalculatorVariablePool:
Collaboration graph

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...
 

Detailed Description

This is a simple class to model a Calculator Variable Pool.

Author
2012-07-15 Kris Becker

Constructor & Destructor Documentation

◆ CalculatorVariablePool()

Isis::CalculatorVariablePool::CalculatorVariablePool ( )

Constructs a CalculatorVariablePool object.

◆ ~CalculatorVariablePool()

Isis::CalculatorVariablePool::~CalculatorVariablePool ( )

Destroys the CalculatorVariablePool object.

Member Function Documentation

◆ add()

void Isis::CalculatorVariablePool::add ( const QString &  key,
QVector< double > &  values 
)
virtual

Add a parameter to the variable pool.

Some implementations can take advantage of this if desired but it is not standard.

Parameters
keyA string containing the name of the parameter to be added.
valuesA vector of double precision values to be added to the variable pool.
Exceptions
IException::Programmer"No implementation in Calculator variable pool to add value for variable."

References _FILEINFO_, and Isis::IException::Programmer.

◆ exists()

bool Isis::CalculatorVariablePool::exists ( const QString &  variable) const
virtual

Returns true so the real error can be reported.

Parameters
variableA string containing the variable we are looking for.
Returns
bool True

Referenced by Isis::InlineCalculator::variable().

◆ value()

QVector< double > Isis::CalculatorVariablePool::value ( const QString &  variable,
const int &  index = 0 
) const
virtual

Return vector of doubles for Calculator functions.

Parameters
variableA string containing the variable.
indexThe location in the pool.
Returns
QVector < double > A vector of calculator functions.
Exceptions
IException::Programmer"No implementation in Calculator variable pool to provide value for variable."

References _FILEINFO_, and Isis::IException::Programmer.

Referenced by Isis::InlineCalculator::variable().


The documentation for this class was generated from the following files: