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
virtual double value(const edm::ObjectWithDict &) const =0
std::shared_ptr< ExpressionBase > ExpressionPtr
fixed size matrix
HLT enums.