CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWExpressionEvaluator.h,v 1.4 2012/08/03 18:20:27 wmtan Exp $
20 //
21 
22 // system include files
23 #include <string>
25 
26 // user include files
31 
32 
33 // forward declarations
34 
36 
37 public:
38  FWExpressionEvaluator(const std::string& iExpression,
39  const std::string& iClassName);
40  virtual ~FWExpressionEvaluator();
41 
42  // ---------- const member functions ---------------------
43 
44  const std::string& expression() const;
45 
46  double evalExpression(const void*) const;
47 
48  // ---------- static member functions --------------------
49 
50  // ---------- member functions ---------------------------
52  void setExpression(const std::string& );
53  void setClassName(const std::string& );
54 
55 private:
56  //FWExpressionEvaluator(const FWExpressionEvaluator&); // stop default
57 
58  //const FWExpressionEvaluator& operator=(const FWExpressionEvaluator&); // stop default
59 
60  // ---------- member data --------------------------------
65 };
66 
67 #endif
reco::parser::ExpressionPtr m_expr
void setClassName(const std::string &)
FWExpressionEvaluator(const std::string &iExpression, const std::string &iClassName)
void setExpression(const std::string &)
boost::shared_ptr< ExpressionBase > ExpressionPtr
double evalExpression(const void *) const
const std::string & expression() const