![]() |
ATLAS Offline Software
|
#include <ExpressionEvaluator.h>
Public Member Functions | |
ExpressionEvaluator () | |
~ExpressionEvaluator () | |
bool | RegisterConstant (std::string &c, double v) |
bool | RegisterPhysConstant (std::string &, const std::string &, const std::string &) |
bool | RegisterExpression (std::string &c, const std::string &v) |
bool | RegisterArray (std::string &c, const std::vector< double > &v) |
bool | RegisterVariable (const std::string &var_name, double value) |
double | EvaluateString (const std::string &str) |
bool | is_delimiter (char c) |
bool | is_real_variable (const std::string &var_name) |
double | Eval (const std::string &expr) |
double | Eval (const char *expr) |
void | setFileCurrentlyParsed (const std::string &set) |
Static Public Member Functions | |
static std::string | trim (const std::string &) |
static std::vector< std::string > | tokenize (const std::string &, const std::string &) |
Private Attributes | |
HepTool::Evaluator | m_calc |
ConstantsTable | m_CTable |
PhysicalConstantsTable | m_PCTable |
std::string | m_fileCurrentlyParsed |
std::vector< std::string > | m_real_vars |
Definition at line 20 of file ExpressionEvaluator.h.
ExpressionEvaluator::ExpressionEvaluator | ( | ) |
Definition at line 17 of file ExpressionEvaluator.cxx.
ExpressionEvaluator::~ExpressionEvaluator | ( | ) |
Definition at line 26 of file ExpressionEvaluator.cxx.
double ExpressionEvaluator::Eval | ( | const char * | expr | ) |
Definition at line 196 of file ExpressionEvaluator.cxx.
double ExpressionEvaluator::Eval | ( | const std::string & | expr | ) |
Definition at line 191 of file ExpressionEvaluator.cxx.
double ExpressionEvaluator::EvaluateString | ( | const std::string & | str | ) |
Definition at line 95 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::is_delimiter | ( | char | c | ) |
bool ExpressionEvaluator::is_real_variable | ( | const std::string & | var_name | ) |
Definition at line 70 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::RegisterArray | ( | std::string & | c, |
const std::vector< double > & | v | ||
) |
Definition at line 48 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::RegisterConstant | ( | std::string & | c, |
double | v | ||
) |
Definition at line 33 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::RegisterExpression | ( | std::string & | c, |
const std::string & | v | ||
) |
Definition at line 172 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::RegisterPhysConstant | ( | std::string & | c, |
const std::string & | value, | ||
const std::string & | unit | ||
) |
Definition at line 150 of file ExpressionEvaluator.cxx.
bool ExpressionEvaluator::RegisterVariable | ( | const std::string & | var_name, |
double | value | ||
) |
Definition at line 63 of file ExpressionEvaluator.cxx.
|
inline |
Definition at line 41 of file ExpressionEvaluator.h.
|
static |
Definition at line 276 of file ExpressionEvaluator.cxx.
|
private |
Definition at line 47 of file ExpressionEvaluator.h.
|
private |
Definition at line 48 of file ExpressionEvaluator.h.
|
private |
Definition at line 50 of file ExpressionEvaluator.h.
|
private |
Definition at line 49 of file ExpressionEvaluator.h.
|
private |
Definition at line 51 of file ExpressionEvaluator.h.