Main Page
Namespaces
Classes
Package Documentation
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
{
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
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
reco::parser::ExpressionStack
std::vector< std::shared_ptr< ExpressionBase > > ExpressionStack
Definition:
ExpressionStack.h:19
reco::parser::ExpressionNumberSetter
Definition:
ExpressionNumberSetter.h:18
svgfig.stack
stack
Definition:
svgfig.py:559
ExpressionNumber.h
writedatasetfile.parser
parser
Definition:
writedatasetfile.py:7
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
reco::parser::ExpressionNumberSetter::ExpressionNumberSetter
ExpressionNumberSetter(ExpressionStack &stack)
Definition:
ExpressionNumberSetter.h:19
ExpressionStack.h
Generated for CMSSW Reference Manual by
1.8.11