Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-05 22:47:52

0001 #ifndef Parser_ExpressionBase_h
0002 #define Parser_ExpressionBase_h
0003 /* \class reco::parser::ExpressionBase
0004  *
0005  * Base class for parsed expressions
0006  *
0007  * \author original version: Chris Jones, Cornell, 
0008  *         adapted by Luca Lista, INFN
0009  *
0010  */
0011 
0012 #include <vector>
0013 #include <memory>
0014 
0015 namespace edm {
0016   class ObjectWithDict;
0017 }
0018 
0019 namespace reco {
0020   namespace parser {
0021     struct ExpressionBase {
0022       virtual ~ExpressionBase() {}
0023       virtual double value(const edm::ObjectWithDict&) const = 0;
0024     };
0025     typedef std::shared_ptr<ExpressionBase> ExpressionPtr;
0026   }  // namespace parser
0027 }  // namespace reco
0028 
0029 #endif