test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
Utils
src
ExpressionNumberSetter.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_ExpressionNumberSetter_h
2
#define CommonTools_Utils_ExpressionNumberSetter_h
3
/* \class reco::parser::ExpressionNumber
4
*
5
* Numerical expression setter
6
*
7
* \author original version: Chris Jones, Cornell,
8
* adapted by Luca Lista, INFN
9
*
10
* \version $Revision: 1.3 $
11
*
12
*/
13
#include "
CommonTools/Utils/src/ExpressionNumber.h
"
14
#include "
CommonTools/Utils/src/ExpressionStack.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
struct
ExpressionNumberSetter
{
19
ExpressionNumberSetter
(
ExpressionStack
&
stack
) :
stack_
(stack) { }
20
void
operator()
(
double
n
)
const
{
21
stack_
.push_back(
ExpressionPtr
(
new
ExpressionNumber
(n)));
22
}
23
private
:
24
ExpressionStack
&
stack_
;
25
};
26
}
27
}
28
29
#endif
reco::parser::ExpressionNumberSetter::operator()
void operator()(double n) const
Definition:
ExpressionNumberSetter.h:20
reco::parser::ExpressionNumber
Definition:
ExpressionNumber.h:17
reco::parser::ExpressionPtr
boost::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:22
reco::parser::ExpressionNumberSetter::stack_
ExpressionStack & stack_
Definition:
ExpressionNumberSetter.h:24
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
reco::parser::ExpressionNumberSetter
Definition:
ExpressionNumberSetter.h:18
reco::parser::ExpressionStack
std::vector< boost::shared_ptr< ExpressionBase > > ExpressionStack
Definition:
ExpressionStack.h:18
svgfig.stack
stack
Definition:
svgfig.py:558
ExpressionNumber.h
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
mps_alisetup.parser
tuple parser
Definition:
mps_alisetup.py:83
reco::parser::ExpressionNumberSetter::ExpressionNumberSetter
ExpressionNumberSetter(ExpressionStack &stack)
Definition:
ExpressionNumberSetter.h:19
ExpressionStack.h
Generated for CMSSW Reference Manual by
1.8.5