CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
triggerExpression::OperatorAnd Class Reference

#include <TriggerExpressionOperators.h>

Inheritance diagram for triggerExpression::OperatorAnd:
triggerExpression::BinaryOperator triggerExpression::Evaluator

Public Member Functions

void dump (std::ostream &out) const
 
bool operator() (const Data &data) const
 
 OperatorAnd (Evaluator *arg1, Evaluator *arg2)
 
- Public Member Functions inherited from triggerExpression::BinaryOperator
 BinaryOperator (Evaluator *arg1, Evaluator *arg2)
 
void init (const Data &data)
 
- Public Member Functions inherited from triggerExpression::Evaluator
 Evaluator ()
 
virtual ~Evaluator ()
 

Additional Inherited Members

- Protected Attributes inherited from triggerExpression::BinaryOperator
boost::scoped_ptr< Evaluatorm_arg1
 
boost::scoped_ptr< Evaluatorm_arg2
 

Detailed Description

Definition at line 63 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

triggerExpression::OperatorAnd::OperatorAnd ( Evaluator arg1,
Evaluator arg2 
)
inline

Definition at line 65 of file TriggerExpressionOperators.h.

65  :
66  BinaryOperator(arg1, arg2)
67  { }
BinaryOperator(Evaluator *arg1, Evaluator *arg2)

Member Function Documentation

void triggerExpression::OperatorAnd::dump ( std::ostream &  out) const
inlinevirtual

Implements triggerExpression::Evaluator.

Definition at line 76 of file TriggerExpressionOperators.h.

References triggerExpression::BinaryOperator::m_arg1, and triggerExpression::BinaryOperator::m_arg2.

76  {
77  m_arg1->dump(out);
78  out << " AND ";
79  m_arg2->dump(out);
80  }
boost::scoped_ptr< Evaluator > m_arg2
boost::scoped_ptr< Evaluator > m_arg1
bool triggerExpression::OperatorAnd::operator() ( const Data data) const
inlinevirtual

Implements triggerExpression::Evaluator.

Definition at line 69 of file TriggerExpressionOperators.h.

References AlCaHLTBitMon_QueryRunRegistry::data, diffTwoXMLs::r1, and diffTwoXMLs::r2.

69  {
70  // force the execution af both arguments, otherwise precalers won't work properly
71  bool r1 = (*m_arg1)(data);
72  bool r2 = (*m_arg2)(data);
73  return r1 and r2;
74  }