Fireworks
Core
interface
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>
23
#include "
FWCore/Reflection/interface/TypeWithDict.h
"
24
25
// user include files
26
#include "
CommonTools/Utils/src/SelectorPtr.h
"
27
#include "
CommonTools/Utils/src/SelectorBase.h
"
28
#include "
CommonTools/Utils/src/ExpressionPtr.h
"
29
#include "
CommonTools/Utils/src/ExpressionBase.h
"
30
31
// forward declarations
32
33
class
FWExpressionEvaluator
{
34
public
:
35
FWExpressionEvaluator
(
const
std::string
& iExpression,
const
std::string
& iClassName);
36
virtual
~FWExpressionEvaluator
();
37
38
// ---------- const member functions ---------------------
39
40
const
std::string
&
expression
()
const
;
41
42
double
evalExpression
(
const
void
*)
const
;
43
44
// ---------- static member functions --------------------
45
46
// ---------- member functions ---------------------------
48
void
setExpression
(
const
std::string
&);
49
void
setClassName
(
const
std::string
&);
50
51
private
:
52
//FWExpressionEvaluator(const FWExpressionEvaluator&); // stop default
53
54
//const FWExpressionEvaluator& operator=(const FWExpressionEvaluator&); // stop default
55
56
// ---------- member data --------------------------------
57
std::string
m_expression
;
58
std::string
m_className
;
59
reco::parser::ExpressionPtr
m_expr
;
60
edm::TypeWithDict
m_type
;
61
};
62
63
#endif
FWExpressionEvaluator::m_expr
reco::parser::ExpressionPtr m_expr
Definition:
FWExpressionEvaluator.h:59
FWExpressionEvaluator::m_expression
std::string m_expression
Definition:
FWExpressionEvaluator.h:57
TypeWithDict.h
ExpressionBase.h
FWExpressionEvaluator::~FWExpressionEvaluator
virtual ~FWExpressionEvaluator()
Definition:
FWExpressionEvaluator.cc:47
FWExpressionEvaluator::setClassName
void setClassName(const std::string &)
Definition:
FWExpressionEvaluator.cc:94
SelectorPtr.h
FWExpressionEvaluator::m_type
edm::TypeWithDict m_type
Definition:
FWExpressionEvaluator.h:60
FWExpressionEvaluator::m_className
std::string m_className
Definition:
FWExpressionEvaluator.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
FWExpressionEvaluator::evalExpression
double evalExpression(const void *) const
Definition:
FWExpressionEvaluator.cc:109
edm::TypeWithDict
Definition:
TypeWithDict.h:38
FWExpressionEvaluator::setExpression
void setExpression(const std::string &)
Definition:
FWExpressionEvaluator.cc:64
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:25
ExpressionPtr.h
FWExpressionEvaluator
Definition:
FWExpressionEvaluator.h:33
FWExpressionEvaluator::expression
const std::string & expression() const
Definition:
FWExpressionEvaluator.cc:107
FWExpressionEvaluator::FWExpressionEvaluator
FWExpressionEvaluator(const std::string &iExpression, const std::string &iClassName)
Definition:
FWExpressionEvaluator.cc:37
SelectorBase.h
Generated for CMSSW Reference Manual by
1.8.16