Jpp
Public Types | Public Member Functions | Protected Attributes | List of all members
JTRIGGER::JMatchHelper< JHit_t > Class Template Reference

Auxiliary class to handle pointer to match function. More...

#include <JMatch.hh>

Inheritance diagram for JTRIGGER::JMatchHelper< JHit_t >:
JLANG::JClonable< JClonable_t, JDerived_t >

Public Types

typedef bool(* pFun) (const JHit_t &, const JHit_t &)
 pointer to match function More...
 
typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JMatchHelper (pFun match)
 Constructor. More...
 
virtual bool operator() (const JHit_t &first, const JHit_t &second) const
 Match operator. More...
 
virtual clone_type clone () const
 Get clone of this object. More...
 

Protected Attributes

pFun match
 

Detailed Description

template<class JHit_t>
class JTRIGGER::JMatchHelper< JHit_t >

Auxiliary class to handle pointer to match function.

Definition at line 51 of file JMatch.hh.

Member Typedef Documentation

◆ pFun

template<class JHit_t >
typedef bool(* JTRIGGER::JMatchHelper< JHit_t >::pFun) (const JHit_t &, const JHit_t &)

pointer to match function

Definition at line 56 of file JMatch.hh.

◆ clone_type

template<class JClonable_t, class JDerived_t>
typedef JClonable<JClonable_t>::clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone_type
inherited

Definition at line 61 of file JClonable.hh.

Constructor & Destructor Documentation

◆ JMatchHelper()

template<class JHit_t >
JTRIGGER::JMatchHelper< JHit_t >::JMatchHelper ( pFun  match)
inline

Constructor.

Parameters
matchpointer to match function

Definition at line 63 of file JMatch.hh.

63  :
64  match(match)
65  {}

Member Function Documentation

◆ operator()()

template<class JHit_t >
virtual bool JTRIGGER::JMatchHelper< JHit_t >::operator() ( const JHit_t &  first,
const JHit_t &  second 
) const
inlinevirtual

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 75 of file JMatch.hh.

76  {
77  return match(first, second);
78  }

◆ clone()

template<class JClonable_t, class JDerived_t>
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlinevirtualinherited

Member Data Documentation

◆ match

template<class JHit_t >
pFun JTRIGGER::JMatchHelper< JHit_t >::match
protected

Definition at line 81 of file JMatch.hh.


The documentation for this class was generated from the following file:
JTRIGGER::JMatchHelper::match
pFun match
Definition: JMatch.hh:81