Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
Utils
src
ExpressionUnaryOperator.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_ExpressionUnaryOperator_h
2
#define CommonTools_Utils_ExpressionUnaryOperator_h
3
/* \class reco::parser::ExpressionUnaryOperator
4
*
5
* Unary Operator expression
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/ExpressionBase.h
"
14
#include "
CommonTools/Utils/src/ExpressionStack.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
template
<
typename
Op>
19
struct
ExpressionUnaryOperator
:
public
ExpressionBase
{
20
virtual
double
value
(
const
edm::ObjectWithDict
&
o
)
const
{
21
return
op_
((*exp_).value(o));
22
}
23
ExpressionUnaryOperator
(
ExpressionStack
& expStack) {
24
exp_
= expStack.back(); expStack.pop_back();
25
}
26
private
:
27
Op
op_
;
28
ExpressionPtr
exp_
;
29
};
30
}
31
}
32
33
#endif
edm::ObjectWithDict
Definition:
ObjectWithDict.h:16
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
ExpressionBase.h
reco::parser::ExpressionUnaryOperator
Definition:
ExpressionUnaryOperator.h:19
reco::parser::ExpressionPtr
boost::shared_ptr< ExpressionBase > ExpressionPtr
Definition:
ExpressionBase.h:24
reco::parser::ExpressionBase
Definition:
ExpressionBase.h:20
reco::parser::ExpressionStack
std::vector< boost::shared_ptr< ExpressionBase > > ExpressionStack
Definition:
ExpressionStack.h:18
L1Trigger_dataformats.reco
dictionary reco
Definition:
L1Trigger_dataformats.py:9
reco::parser::ExpressionUnaryOperator::exp_
ExpressionPtr exp_
Definition:
ExpressionUnaryOperator.h:28
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
reco::parser::ExpressionUnaryOperator::op_
Op op_
Definition:
ExpressionUnaryOperator.h:27
reco::parser::ExpressionUnaryOperator::ExpressionUnaryOperator
ExpressionUnaryOperator(ExpressionStack &expStack)
Definition:
ExpressionUnaryOperator.h:23
ExpressionStack.h
reco::parser::ExpressionUnaryOperator::value
virtual double value(const edm::ObjectWithDict &o) const
Definition:
ExpressionUnaryOperator.h:20
Generated for CMSSW Reference Manual by
1.8.5