CMS 3D CMS Logo

ExpressionBase.h
Go to the documentation of this file.
1 #ifndef Parser_ExpressionBase_h
2 #define Parser_ExpressionBase_h
3 /* \class reco::parser::ExpressionBase
4  *
5  * Base class for parsed expressions
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted by Luca Lista, INFN
9  *
10  */
11 
12 #include <vector>
13 #include <memory>
14 
15 namespace edm {
16  class ObjectWithDict;
17 }
18 
19 namespace reco {
20  namespace parser {
21  struct ExpressionBase {
22  virtual ~ExpressionBase() {}
23  virtual double value(const edm::ObjectWithDict&) const = 0;
24  };
25  typedef std::shared_ptr<ExpressionBase> ExpressionPtr;
26  } // namespace parser
27 } // namespace reco
28 
29 #endif
reco::parser::ExpressionBase::value
virtual double value(const edm::ObjectWithDict &) const =0
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ObjectWithDict
Definition: ObjectWithDict.h:17
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::parser::ExpressionBase
Definition: ExpressionBase.h:21
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition: ExpressionBase.h:25
reco::parser::ExpressionBase::~ExpressionBase
virtual ~ExpressionBase()
Definition: ExpressionBase.h:22