#ifndef __JMATCH__ #define __JMATCH__ #include #include "JLang/JClonable.hh" namespace JTRIGGER { namespace { using JLANG::JClonable; } /** * Function object interface for hit matching. */ template class JMatch : public JClonable< JMatch >, public std::binary_function { public: /** * Virtual destructor. */ virtual ~JMatch() {} /** * Match operator. * * \param first hit * \param second hit * \return match result */ virtual bool operator()(const JHit_t& first, const JHit_t& second) const = 0; }; } #endif