CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::pathStatusExpression::BinaryOperator< T > Class Template Reference
Inheritance diagram for edm::pathStatusExpression::BinaryOperator< T >:
edm::pathStatusExpression::Evaluator

Public Member Functions

bool evaluate (Event const &event) const override
 
void init (ConsumesCollector &iC) override
 
void print (std::ostream &out, unsigned int indentation) const override
 
template<>
void print (std::ostream &out, unsigned int indentation) const
 
template<>
void print (std::ostream &out, unsigned int indentation) const
 
void setLeft (std::unique_ptr< Evaluator > &&v) override
 
void setRight (std::unique_ptr< Evaluator > &&v) override
 
EvaluatorType type () const override
 
template<>
Evaluator::EvaluatorType type () const
 
template<>
Evaluator::EvaluatorType type () const
 
- Public Member Functions inherited from edm::pathStatusExpression::Evaluator
virtual ~Evaluator ()
 

Private Attributes

edm::propagate_const< std::unique_ptr< Evaluator > > left_
 
edm::propagate_const< std::unique_ptr< Evaluator > > right_
 

Additional Inherited Members

- Public Types inherited from edm::pathStatusExpression::Evaluator
enum  EvaluatorType {
  Name, Not, And, Or,
  BeginParen
}
 

Detailed Description

template<typename T>
class edm::pathStatusExpression::BinaryOperator< T >

Definition at line 137 of file PathStatusFilter.cc.

Member Function Documentation

template<typename T >
bool edm::pathStatusExpression::BinaryOperator< T >::evaluate ( Event const &  event) const
inlineoverridevirtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 151 of file PathStatusFilter.cc.

151  {
152  T op;
153  return op(left_->evaluate(event), right_->evaluate(event));
154  }
edm::propagate_const< std::unique_ptr< Evaluator > > left_
edm::propagate_const< std::unique_ptr< Evaluator > > right_
long double T
Definition: event.py:1
template<typename T >
void edm::pathStatusExpression::BinaryOperator< T >::init ( ConsumesCollector iC)
inlineoverridevirtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 146 of file PathStatusFilter.cc.

146  {
147  left_->init(iC);
148  right_->init(iC);
149  }
edm::propagate_const< std::unique_ptr< Evaluator > > left_
edm::propagate_const< std::unique_ptr< Evaluator > > right_
template<typename T >
void edm::pathStatusExpression::BinaryOperator< T >::print ( std::ostream &  out,
unsigned int  indentation 
) const
overridevirtual
template<>
void edm::pathStatusExpression::BinaryOperator< std::logical_and< bool > >::print ( std::ostream &  out,
unsigned int  indentation 
) const
virtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 172 of file PathStatusFilter.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

172  {
173  out << std::string(indentation, ' ') << "and\n";
174  left_->print(out, indentation + 4);
175  right_->print(out, indentation + 4);
176  }
edm::propagate_const< std::unique_ptr< Evaluator > > left_
edm::propagate_const< std::unique_ptr< Evaluator > > right_
template<>
void edm::pathStatusExpression::BinaryOperator< std::logical_or< bool > >::print ( std::ostream &  out,
unsigned int  indentation 
) const
virtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 178 of file PathStatusFilter.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

178  {
179  out << std::string(indentation, ' ') << "or\n";
180  left_->print(out, indentation + 4);
181  right_->print(out, indentation + 4);
182  }
edm::propagate_const< std::unique_ptr< Evaluator > > left_
edm::propagate_const< std::unique_ptr< Evaluator > > right_
template<typename T >
void edm::pathStatusExpression::BinaryOperator< T >::setLeft ( std::unique_ptr< Evaluator > &&  v)
inlineoverridevirtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 141 of file PathStatusFilter.cc.

References eostools::move(), and findQualityFiles::v.

141 { left_ = std::move(v); }
edm::propagate_const< std::unique_ptr< Evaluator > > left_
def move(src, dest)
Definition: eostools.py:511
template<typename T >
void edm::pathStatusExpression::BinaryOperator< T >::setRight ( std::unique_ptr< Evaluator > &&  v)
inlineoverridevirtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 142 of file PathStatusFilter.cc.

References eostools::move(), MillePedeFileConverter_cfg::out, edm::print(), and findQualityFiles::v.

142 { right_ = std::move(v); }
edm::propagate_const< std::unique_ptr< Evaluator > > right_
def move(src, dest)
Definition: eostools.py:511
template<typename T >
EvaluatorType edm::pathStatusExpression::BinaryOperator< T >::type ( ) const
overridevirtual
template<>
Evaluator::EvaluatorType edm::pathStatusExpression::BinaryOperator< std::logical_and< bool > >::type ( ) const
inlinevirtual

Implements edm::pathStatusExpression::Evaluator.

Definition at line 162 of file PathStatusFilter.cc.

162  {
163  return And;
164  }
template<>
Evaluator::EvaluatorType edm::pathStatusExpression::BinaryOperator< std::logical_or< bool > >::type ( ) const
inlinevirtual

Implements edm::pathStatusExpression::Evaluator.

Definition at line 167 of file PathStatusFilter.cc.

167  {
168  return Or;
169  }

Member Data Documentation

template<typename T >
edm::propagate_const<std::unique_ptr<Evaluator> > edm::pathStatusExpression::BinaryOperator< T >::left_
private

Definition at line 157 of file PathStatusFilter.cc.

template<typename T >
edm::propagate_const<std::unique_ptr<Evaluator> > edm::pathStatusExpression::BinaryOperator< T >::right_
private

Definition at line 158 of file PathStatusFilter.cc.