Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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 to Reflex by Luca Lista, INFN
9
*
10
* \version $Revision: 1.1 $
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
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
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:24
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:101
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
n
int n
Definition:
DTDataIntegrityTask.cc:32
reco::parser::ExpressionNumberSetter::ExpressionNumberSetter
ExpressionNumberSetter(ExpressionStack &stack)
Definition:
ExpressionNumberSetter.h:19
ExpressionStack.h
Generated for CMSSW Reference Manual by
1.8.5