File indexing completed on 2024-04-06 12:01:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "formulaVariableEvaluator.h"
0017
0018 namespace reco {
0019 namespace formula {
0020 double VariableEvaluator::evaluate(double const* iVariables, double const* ) const {
0021 return iVariables[m_index];
0022 }
0023
0024 std::vector<std::string> VariableEvaluator::abstractSyntaxTree() const {
0025 return std::vector<std::string>{1, std::string("var[") + std::to_string(m_index) + "]"};
0026 }
0027 }
0028 }