Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 >:
JTRIGGER::JMatch< JHit_t > JLANG::JClonable< JClass_t >

Public Types

typedef bool(* pFun )(const JHit_t &, const JHit_t &)
 pointer to match function More...
 
typedef JClass_t * clone_type
 Type definition of return value of method clone(). More...
 

Public Member Functions

 JMatchHelper (pFun __match)
 Constructor. More...
 
JMatch< JHit_t > * clone () const
 Clone object. More...
 
virtual bool operator() (const JHit_t &first, const JHit_t &second) const
 Match operator. 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 54 of file JMatch.hh.

Member Typedef Documentation

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

pointer to match function

Definition at line 59 of file JMatch.hh.

template<class JClass_t>
typedef JClass_t* JLANG::JClonable< JClass_t >::clone_type
inherited

Type definition of return value of method clone().

Definition at line 25 of file JClonable.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
__matchpointer to match function

Definition at line 66 of file JMatch.hh.

66  :
67  match(__match)
68  {}

Member Function Documentation

template<class JHit_t>
JMatch<JHit_t>* JTRIGGER::JMatchHelper< JHit_t >::clone ( ) const
inlinevirtual

Clone object.

Returns
match result

Implements JLANG::JClonable< JClass_t >.

Definition at line 76 of file JMatch.hh.

77  {
78  return new JMatchHelper<JHit_t>(*this);
79  }
Auxiliary class to handle pointer to match function.
Definition: JMatch.hh:54
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

Implements JTRIGGER::JMatch< JHit_t >.

Definition at line 89 of file JMatch.hh.

90  {
91  return match(first, second);
92  }

Member Data Documentation

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

Definition at line 95 of file JMatch.hh.


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