Evaluate functions given in a string. The real work is done by the ExpressionParser class. More...
#include "utl/Function.h"
Public Member Functions | |
Function () | |
Function (const std::string &function, const std::vector< std::string > &vars) | |
Function (const std::string &function, const std::string &var) | |
const std::string & | GetFunction () const |
utl::SymbolTable & | GetVariables () |
const utl::SymbolTable & | GetVariables () const |
double | operator() () const |
double | operator() (const double &var) const |
double | operator() (const std::vector< double > &vars) const |
Private Attributes | |
FunctionParser | fFunc |
std::string | fFunction |
std::vector< std::string > | fVariableNames |
Evaluate functions given in a string. The real work is done by the ExpressionParser class.
Definition at line 27 of file Function.h.
|
inline |
Definition at line 29 of file Function.h.
utl::Function::Function | ( | const std::string & | function, |
const std::vector< std::string > & | vars | ||
) |
Definition at line 13 of file Function.cc.
References fFunc, and fVariableNames.
utl::Function::Function | ( | const std::string & | function, |
const std::string & | var | ||
) |
Definition at line 24 of file Function.cc.
References fFunc, and fVariableNames.
|
inline |
Definition at line 33 of file Function.h.
References fFunction.
Referenced by FdEnergyDepositFinderKG::GHShapeParameters::UnitName().
|
inline |
Definition at line 35 of file Function.h.
References fFunc, and utl::ExpressionParser< Grammar, Symbols >::GetVariables().
|
inline |
Definition at line 36 of file Function.h.
References fFunc, and utl::ExpressionParser< Grammar, Symbols >::GetVariables().
|
inline |
Definition at line 38 of file Function.h.
double utl::Function::operator() | ( | const double & | var | ) | const |
Definition at line 34 of file Function.cc.
References ERROR, fFunc, fFunction, fVariableNames, and utl::ExpressionParser< Grammar, Symbols >::SetVariable().
double utl::Function::operator() | ( | const std::vector< double > & | vars | ) | const |
Definition at line 48 of file Function.cc.
References ERROR, fFunc, fFunction, fVariableNames, and utl::ExpressionParser< Grammar, Symbols >::SetVariable().
|
mutableprivate |
Definition at line 49 of file Function.h.
Referenced by Function(), GetVariables(), and operator()().
|
private |
Definition at line 46 of file Function.h.
Referenced by GetFunction(), and operator()().
|
private |
Definition at line 47 of file Function.h.
Referenced by Function(), and operator()().