#ifndef __JTRIGGER__JMATCHFIXER__ #define __JTRIGGER__JMATCHFIXER__ #include "JLang/JClonable.hh" #include "JTrigger/JMatch.hh" /** * \file * * Match fixer. * \author mdejong */ namespace JTRIGGER {} namespace JPP { using namespace JTRIGGER; } namespace JTRIGGER { using JLANG::JClonable; /** * Auxiliary class to fix match. */ template class JMatchFixer : public JClonable< JMatch , JMatchFixer > { public: /** * Constructor * * \param match match fixer */ JMatchFixer(const bool match) : match(match) {} /** * Match operator. * * \param first hit * \param second hit * \return match result */ virtual bool operator()(const JHit_t& first, const JHit_t& second) const override { return match; } protected: bool match; }; #endif