CMS 3D CMS Logo

Public Member Functions

triggerExpression::OperatorXor Class Reference

#include <TriggerExpressionOperators.h>

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

List of all members.

Public Member Functions

void dump (std::ostream &out) const
bool operator() (const Data &data) const
 OperatorXor (Evaluator *arg1, Evaluator *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.

                                                  :
    BinaryOperator(arg1, arg2)
  { }

Member Function Documentation

void triggerExpression::OperatorXor::dump ( std::ostream &  out) const [inline, virtual]
bool triggerExpression::OperatorXor::operator() ( const Data data) const [inline, virtual]

Implements triggerExpression::Evaluator.

Definition at line 109 of file TriggerExpressionOperators.h.

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

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