Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
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
 
typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

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

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 74 of file JMatch.hh.

Member Typedef Documentation

◆ pFun

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

pointer to match function

Definition at line 79 of file JMatch.hh.

◆ clone_type

template<class JClonable_t , class JDerived_t >
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 86 of file JMatch.hh.

86 :
88 {}

Member Function Documentation

◆ operator()()

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

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 98 of file JMatch.hh.

99 {
100 return match(first, second);
101 }

◆ clone()

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

Member Data Documentation

◆ match

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

Definition at line 104 of file JMatch.hh.


The documentation for this class was generated from the following file: