CMS 3D CMS Logo

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 override
 
bool operator() (const Data &data) const override
 
 OperatorXor (Evaluator *arg1, Evaluator *arg2)
 
- Public Member Functions inherited from triggerExpression::BinaryOperator
 BinaryOperator (Evaluator *arg1, Evaluator *arg2)
 
void init (const Data &data) override
 
std::vector< std::string > patterns () const override
 
- Public Member Functions inherited from triggerExpression::Evaluator
 Evaluator ()=default
 
virtual ~Evaluator ()=default
 

Additional Inherited Members

- Protected Attributes inherited from triggerExpression::BinaryOperator
std::unique_ptr< Evaluatorm_arg1
 
std::unique_ptr< Evaluatorm_arg2
 

Detailed Description

Definition at line 99 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

◆ OperatorXor()

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

Definition at line 101 of file TriggerExpressionOperators.h.

101 : BinaryOperator(arg1, arg2) {}
BinaryOperator(Evaluator *arg1, Evaluator *arg2)

Member Function Documentation

◆ dump()

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

◆ operator()()

bool triggerExpression::OperatorXor::operator() ( const Data data) const
inlineoverridevirtual

Implements triggerExpression::Evaluator.

Definition at line 103 of file TriggerExpressionOperators.h.

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

103  {
104  // force the execution af both arguments, otherwise precalers won't work properly
105  bool r1 = (*m_arg1)(data);
106  bool r2 = (*m_arg2)(data);
107  return r1 xor r2;
108  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79