![]() |
|
|||
File indexing completed on 2023-03-17 10:45:42
0001 // -*- C++ -*- 0002 // 0003 // Package: CommonTools/Utils 0004 // Class : reco::formula::ConstantEvaluator 0005 // 0006 // Implementation: 0007 // [Notes on implementation] 0008 // 0009 // Original Author: Christopher Jones 0010 // Created: Wed, 23 Sep 2015 18:06:29 GMT 0011 // 0012 0013 // system include files 0014 0015 // user include files 0016 #include "formulaConstantEvaluator.h" 0017 0018 namespace reco { 0019 namespace formula { 0020 double ConstantEvaluator::evaluate(double const* /*iVariables*/, double const* /*iParameters*/) const { 0021 return m_value; 0022 } 0023 0024 std::vector<std::string> ConstantEvaluator::abstractSyntaxTree() const { 0025 return std::vector<std::string>{1, std::to_string(m_value)}; 0026 } 0027 } // namespace formula 0028 } // namespace reco
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |