1 #ifndef _utl_Function_h_
2 #define _utl_Function_h_
7 #include <utl/SymbolTable.h>
8 #include <utl/MathExpressionGrammar.h>
9 #include <utl/ExpressionParser.h>
10 #include <utl/AugerUnits.h>
12 #include <utl/Branch.h>
30 Function(
const std::string&
function,
const std::vector<std::string>& vars);
31 Function(
const std::string&
function,
const std::string& var);
40 double operator()(
const std::vector<double>& vars)
const;
double operator()() const
const utl::SymbolTable & GetVariables() const
std::map< std::string, double > SymbolTable
std::vector< std::string > fVariableNames
Evaluate functions given in a string. The real work is done by the ExpressionParser class...
const std::string & GetFunction() const
utl::SymbolTable & GetVariables()
SymbolTable & GetVariables()