File indexing completed on 2023-03-17 10:45:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <algorithm>
0015
0016
0017 #include "CommonTools/Utils/src/formulaEvaluatorBase.h"
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 reco::formula::EvaluatorBase::EvaluatorBase() : m_precedence(static_cast<unsigned int>(Precedence::kFunction)) {}
0031
0032 reco::formula::EvaluatorBase::EvaluatorBase(Precedence iPrec) : m_precedence(static_cast<unsigned int>(iPrec)) {}
0033
0034 reco::formula::EvaluatorBase::~EvaluatorBase() {}
0035
0036 std::vector<std::string> reco::formula::shiftAST(std::vector<std::string> child) {
0037 for (auto& c : child) {
0038 c.insert(c.begin(), '.');
0039 }
0040 return child;
0041 }