Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CommonTools
Utils
src
LogicalBinaryOperator.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_LogicalBinaryOperator_h
2
#define CommonTools_Utils_LogicalBinaryOperator_h
3
/* \class reco::parser::LogicalBinaryOperator
4
*
5
* logical AND combiner
6
*
7
* \author original version: Chris Jones, Cornell,
8
* adapted to Reflex by Luca Lista, INFN
9
*
10
* \version $Revision: 1.3 $
11
*
12
*/
13
#include "
CommonTools/Utils/src/SelectorBase.h
"
14
#include "
CommonTools/Utils/src/SelectorStack.h
"
15
16
namespace
reco
{
17
namespace
parser
{
18
template
<
typename
Op>
19
struct
LogicalBinaryOperator
:
public
SelectorBase
{
20
LogicalBinaryOperator
(
SelectorStack
& selStack) {
21
rhs_
= selStack.back(); selStack.pop_back();
22
lhs_
= selStack.back(); selStack.pop_back();
23
}
24
virtual
bool
operator()
(
const
Reflex::Object&
o
)
const
;
25
private
:
26
Op
op_
;
27
SelectorPtr
lhs_
,
rhs_
;
28
};
29
30
template
<>
31
bool
LogicalBinaryOperator<std::logical_and<bool>
>
::operator
()(
const
Reflex::Object &
o
)
const
;
32
template
<>
33
bool
LogicalBinaryOperator<std::logical_or<bool>
>
::operator
()(
const
Reflex::Object &
o
)
const
;
34
}
35
}
36
37
#endif
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
reco::parser::LogicalBinaryOperator::operator()
virtual bool operator()(const Reflex::Object &o) const
return true if the Refle object is selected
connectstrParser.o
string o
Definition:
connectstrParser.py:70
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:101
SelectorStack.h
reco::parser::LogicalBinaryOperator
Definition:
LogicalBinaryOperator.h:19
reco::parser::SelectorStack
std::vector< SelectorPtr > SelectorStack
Definition:
SelectorStack.h:18
reco::parser::LogicalBinaryOperator::op_
Op op_
Definition:
LogicalBinaryOperator.h:26
SelectorBase.h
cmsCodeRules.cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
reco::parser::SelectorPtr
boost::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:17
reco::parser::LogicalBinaryOperator::lhs_
SelectorPtr lhs_
Definition:
LogicalBinaryOperator.h:27
reco::parser::SelectorBase
Definition:
SelectorBase.h:17
reco::parser::LogicalBinaryOperator::rhs_
SelectorPtr rhs_
Definition:
LogicalBinaryOperator.h:27
reco::parser::LogicalBinaryOperator::LogicalBinaryOperator
LogicalBinaryOperator(SelectorStack &selStack)
Definition:
LogicalBinaryOperator.h:20
Generated for CMSSW Reference Manual by
1.8.5