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::OperatorXor Class Reference

#include <TriggerExpressionOperators.h>

Inheritance diagram for triggerExpression::OperatorXor:
triggerExpression::BinaryOperator triggerExpression::Evaluator

Public Member Functions

void dump (std::ostream &out) const
 
bool operator() (const Data &data) const
 
 OperatorXor (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 103 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

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

Definition at line 105 of file TriggerExpressionOperators.h.

105  :
106  BinaryOperator(arg1, arg2)
107  { }
BinaryOperator(Evaluator *arg1, Evaluator *arg2)

Member Function Documentation

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

Implements triggerExpression::Evaluator.

Definition at line 116 of file TriggerExpressionOperators.h.

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

116  {
117  m_arg1->dump(out);
118  out << " XOR ";
119  m_arg2->dump(out);
120  }
boost::scoped_ptr< Evaluator > m_arg2
tuple out
Definition: dbtoconf.py:99
boost::scoped_ptr< Evaluator > m_arg1
bool triggerExpression::OperatorXor::operator() ( const Data data) const
inlinevirtual

Implements triggerExpression::Evaluator.

Definition at line 109 of file TriggerExpressionOperators.h.

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

109  {
110  // force the execution af both arguments, otherwise precalers won't work properly
111  bool r1 = (*m_arg1)(data);
112  bool r2 = (*m_arg2)(data);
113  return r1 xor r2;
114  }