#include <FormulaEvaluator.h>
Definition at line 67 of file FormulaEvaluator.h.
FormulaEvaluator::FormulaEvaluator |
( |
std::string const & |
iFormula | ) |
|
|
explicit |
Definition at line 753 of file FormulaEvaluator.cc.
References DEBUG_STATE, Exception, EcalElecEmulTccOnlyExample_cfg::formula, info(), lastIndex, eostools::move(), or, and AlCaHLTBitMon_QueryRunRegistry::string.
757 formula.reserve(iFormula.size());
758 std::copy_if(iFormula.begin(), iFormula.end(), std::back_inserter(formula), [](
const char iC) {
return iC !=
' '; } );
760 auto info = s_expressionFinder.createEvaluator(formula.begin(), formula.end(),std::shared_ptr<reco::formula::BinaryOperatorEvaluatorBase>());
762 if(info.nextParseIndex != static_cast<int>(formula.size())
or info.top.get() ==
nullptr) {
764 if(formula.size() != iFormula.size()) {
773 throw cms::Exception(
"FormulaEvaluatorParseError")<<
"While parsing '"<<iFormula<<
"' could not parse beyond '"<<
std::string(iFormula.begin(),iFormula.begin()+
lastIndex) <<
"'";
777 printAST(info.top.get());
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
static std::atomic< unsigned int > lastIndex
std::vector< std::string > FormulaEvaluator::abstractSyntaxTree |
( |
| ) |
const |
template<typename V , typename P >
double reco::FormulaEvaluator::evaluate |
( |
V const & |
iVariables, |
|
|
P const & |
iParameters |
|
) |
| const |
|
inline |
double FormulaEvaluator::evaluate |
( |
double const * |
iVariables, |
|
|
double const * |
iParameters |
|
) |
| const |
|
private |
unsigned int reco::FormulaEvaluator::numberOfParameters |
( |
| ) |
const |
|
inline |
unsigned int reco::FormulaEvaluator::numberOfVariables |
( |
| ) |
const |
|
inline |
void FormulaEvaluator::throwWrongNumberOfParameters |
( |
size_t |
iSize | ) |
const |
|
private |
void FormulaEvaluator::throwWrongNumberOfVariables |
( |
size_t |
iSize | ) |
const |
|
private |
unsigned int reco::FormulaEvaluator::m_nParameters = 0 |
|
private |
unsigned int reco::FormulaEvaluator::m_nVariables = 0 |
|
private |