Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
Utils
src
LogicalUnaryOperator.h
Go to the documentation of this file.
1
#ifndef CommonTools_Utils_LogicalUnaryOperator_h
2
#define CommonTools_Utils_LogicalUnaryOperator_h
3
/* \class reco::parser::LogicalUnaryOperator
4
*
5
* logical AND combiner
6
*
7
* \author original version: Chris Jones, Cornell,
8
* adapted by Luca Lista, INFN
9
*
10
* \version $Revision: 1.2 $
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
LogicalUnaryOperator
:
public
SelectorBase
{
20
LogicalUnaryOperator
(
SelectorStack
& selStack) {
21
rhs_
= selStack.back(); selStack.pop_back();
22
}
23
virtual
bool
operator()
(
const
edm::ObjectWithDict
&
o
)
const
{
24
return
op_
((*
rhs_
)(o));
25
}
26
private
:
27
Op
op_
;
28
SelectorPtr
rhs_
;
29
};
30
}
31
}
32
33
#endif
edm::ObjectWithDict
Definition:
ObjectWithDict.h:16
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
reco::parser::LogicalUnaryOperator::rhs_
SelectorPtr rhs_
Definition:
LogicalUnaryOperator.h:28
SelectorBase.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
SelectorStack.h
reco::parser::SelectorStack
std::vector< SelectorPtr > SelectorStack
Definition:
SelectorStack.h:18
reco::parser::LogicalUnaryOperator::op_
Op op_
Definition:
LogicalUnaryOperator.h:27
reco::parser::LogicalUnaryOperator::LogicalUnaryOperator
LogicalUnaryOperator(SelectorStack &selStack)
Definition:
LogicalUnaryOperator.h:20
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
reco::parser::LogicalUnaryOperator::operator()
virtual bool operator()(const edm::ObjectWithDict &o) const
return true if the object is selected
Definition:
LogicalUnaryOperator.h:23
reco::parser::SelectorPtr
boost::shared_ptr< SelectorBase > SelectorPtr
Definition:
SelectorPtr.h:17
reco::parser::SelectorBase
Definition:
SelectorBase.h:17
reco::parser::LogicalUnaryOperator
Definition:
LogicalUnaryOperator.h:19
Generated for CMSSW Reference Manual by
1.8.5