CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #include <boost/shared_ptr.hpp>
12 #include <vector>
13 
14 namespace edm { class ObjectWithDict; }
15 
16 namespace reco {
17  namespace parser {
18  struct ExpressionBase {
19  virtual ~ExpressionBase() { }
20  virtual double value( const edm::ObjectWithDict & ) const = 0;
21  };
22  typedef boost::shared_ptr<ExpressionBase> ExpressionPtr;
23  }
24 }
25 
26 #endif
virtual double value(const edm::ObjectWithDict &) const =0
boost::shared_ptr< ExpressionBase > ExpressionPtr