Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:15

0001 // -*- C++ -*-
0002 //
0003 // Package:     CommonTools/Utils
0004 // Class  :     reco::formula::EvaluatorBase
0005 //
0006 // Implementation:
0007 //     [Notes on implementation]
0008 //
0009 // Original Author:  Christopher Jones
0010 //         Created:  Wed, 23 Sep 2015 16:26:03 GMT
0011 //
0012 
0013 // system include files
0014 #include <algorithm>
0015 
0016 // user include files
0017 #include "CommonTools/Utils/src/formulaEvaluatorBase.h"
0018 
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 //
0028 // constructors and destructor
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 }