CMS 3D CMS Logo

FWExpressionEvaluator.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWExpressionEvaluator_h
3 #define Fireworks_Core_FWExpressionEvaluator_h
4 //
5 // Package: Core
6 // Class : FWExpressionEvaluator
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Feb 29 13:39:51 PST 2008
19 //
20 
21 // system include files
22 #include <string>
24 
25 // user include files
28 
29 // forward declarations
30 
32 public:
33  FWExpressionEvaluator(const std::string& iExpression, const std::string& iClassName);
34  virtual ~FWExpressionEvaluator();
35 
36  // ---------- const member functions ---------------------
37 
38  const std::string& expression() const;
39 
40  double evalExpression(const void*) const;
41 
42  // ---------- static member functions --------------------
43 
44  // ---------- member functions ---------------------------
46  void setExpression(const std::string&);
47  void setClassName(const std::string&);
48 
49 private:
50  //FWExpressionEvaluator(const FWExpressionEvaluator&); // stop default
51 
52  //const FWExpressionEvaluator& operator=(const FWExpressionEvaluator&); // stop default
53 
54  // ---------- member data --------------------------------
59 };
60 
61 #endif
reco::parser::ExpressionPtr m_expr
void setClassName(const std::string &)
const std::string & expression() const
FWExpressionEvaluator(const std::string &iExpression, const std::string &iClassName)
std::shared_ptr< ExpressionBase > ExpressionPtr
void setExpression(const std::string &)
double evalExpression(const void *) const