Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonTools
Utils
interface
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/interface/ExpressionNumber.h
"
14
#include "
CommonTools/Utils/interface/ExpressionStack.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
struct
ExpressionNumberSetter
{
19
ExpressionNumberSetter
(
ExpressionStack
&
stack
) :
stack_
(stack) {}
20
void
operator()
(
double
n
)
const
{
stack_
.push_back(
ExpressionPtr
(
new
ExpressionNumber
(n))); }
21
22
private
:
23
ExpressionStack
&
stack_
;
24
};
25
}
// namespace parser
26
}
// namespace reco
27
28
#endif
reco::parser::ExpressionNumberSetter::operator()
void operator()(double n) const
Definition:
ExpressionNumberSetter.h:20
reco::parser::ExpressionNumber
Definition:
ExpressionNumber.h:17
reco::parser::ExpressionPtr
std::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:25
reco::parser::ExpressionNumberSetter::stack_
ExpressionStack & stack_
Definition:
ExpressionNumberSetter.h:23
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
reco::parser::ExpressionStack
std::vector< std::shared_ptr< ExpressionBase > > ExpressionStack
Definition:
ExpressionStack.h:19
reco::parser::ExpressionNumberSetter
Definition:
ExpressionNumberSetter.h:18
writedatasetfile.parser
tuple parser
Definition:
writedatasetfile.py:7
svgfig.stack
stack
Definition:
svgfig.py:559
ExpressionNumber.h
reco::parser::ExpressionNumberSetter::ExpressionNumberSetter
ExpressionNumberSetter(ExpressionStack &stack)
Definition:
ExpressionNumberSetter.h:19
ExpressionStack.h
dqmiodumpmetadata.n
int n
Definition:
dqmiodumpmetadata.py:28
Generated for CMSSW Reference Manual by
1.8.5