|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef EXPRESSION_EVALUATOR_H
6 #define EXPRESSION_EVALUATOR_H
8 #include "CLHEP/Evaluator/Evaluator.h"
35 double Eval(
const std::string& expr );
36 double Eval(
const char* expr );
38 static std::string
trim(
const std::string&);
39 static std::vector<std::string>
tokenize(
const std::string&,
const std::string&);
56 #endif // EXPRESSION_EVALUATOR_H
static std::string trim(const std::string &)
std::map< std::string, double > ConstantsTable
bool is_real_variable(const std::string &var_name)
HepTool::Evaluator m_calc
bool RegisterConstant(std::string &c, double v)
bool RegisterArray(std::string &c, const std::vector< double > &v)
PhysicalConstantsTable m_PCTable
std::map< std::string, std::string > ExpressionsTable
std::vector< std::string > m_real_vars
void setFileCurrentlyParsed(const std::string &set)
bool RegisterVariable(const std::string &var_name, double value)
std::string m_fileCurrentlyParsed
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
static std::vector< std::string > tokenize(const std::string &, const std::string &)
bool RegisterExpression(std::string &c, const std::string &v)
bool is_delimiter(char c)
double EvaluateString(const std::string &str)
double Eval(const std::string &expr)
bool RegisterPhysConstant(std::string &, const std::string &, const std::string &)
std::map< std::string, double > PhysicalConstantsTable