1 #ifndef __JTRIGGER__JMATCH__
2 #define __JTRIGGER__JMATCH__
16 namespace JPP {
using namespace JTRIGGER; }
26 template<
class JHit_t>
29 public std::binary_function<JHit_t, JHit_t, bool>
46 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const = 0;
53 template<
class JHit_t>
59 typedef bool (*
pFun)(
const JHit_t&,
const JHit_t&);
89 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const
91 return match(first, second);
105 template<
class JHit_t>
Auxiliary class to handle pointer to match function.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const =0
Match operator.
JMatchHelper< JHit_t > make_match(bool(*match)(const JHit_t &, const JHit_t &))
Auxiliary method to make JMatch object based on pointer to match function.
virtual ~JMatch()
Virtual destructor.
Function object interface for hit matching.
JMatchHelper(pFun __match)
Constructor.
bool(* pFun)(const JHit_t &, const JHit_t &)
pointer to match function
JMatch< JHit_t > * clone() const
Clone object.
Template interface class for object cloning.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const
Match operator.