CMS 3D CMS Logo

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  */
15 
16 namespace reco {
17  namespace parser {
18  template<typename Op>
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_;
29  };
30  }
31 }
32 
33 #endif
std::vector< SelectorPtr > SelectorStack
Definition: SelectorStack.h:18
LogicalUnaryOperator(SelectorStack &selStack)
virtual bool operator()(const edm::ObjectWithDict &o) const
return true if the object is selected
boost::shared_ptr< SelectorBase > SelectorPtr
Definition: SelectorPtr.h:17
fixed size matrix