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

Auxiliary class to convert binary JMatch operator and given hit to unary match operator. More...

#include <JBind2nd.hh>

Inheritance diagram for JTRIGGER::JBinder2nd< JHit_t >:

Public Member Functions

 JBinder2nd (const JMatch< JHit_t > &__match, const JHit_t &__second)
 Constructor. More...
 
bool operator() (const JHit_t &first) const
 Unary match operator. More...
 

Protected Attributes

const JMatch< JHit_t > & match
 
const JHit_t & second
 

Detailed Description

template<class JHit_t>
class JTRIGGER::JBinder2nd< JHit_t >

Auxiliary class to convert binary JMatch operator and given hit to unary match operator.

This class is equivalent to the STD binder2nd class but it uses references to the JMatch interface rather than copies of a derived class.

Definition at line 26 of file JBind2nd.hh.

Constructor & Destructor Documentation

◆ JBinder2nd()

template<class JHit_t >
JTRIGGER::JBinder2nd< JHit_t >::JBinder2nd ( const JMatch< JHit_t > &  __match,
const JHit_t &  __second 
)
inline

Constructor.

Parameters
__matchmatch operator
__secondsecond hit

Definition at line 36 of file JBind2nd.hh.

37  :
38  match (__match),
39  second(__second)
40  {}

Member Function Documentation

◆ operator()()

template<class JHit_t >
bool JTRIGGER::JBinder2nd< JHit_t >::operator() ( const JHit_t &  first) const
inline

Unary match operator.

Parameters
firstfirst hit
Returns
true if first and second hit match; else false

Definition at line 49 of file JBind2nd.hh.

50  {
51  return match(first, second);
52  }

Member Data Documentation

◆ match

template<class JHit_t >
const JMatch<JHit_t>& JTRIGGER::JBinder2nd< JHit_t >::match
protected

Definition at line 56 of file JBind2nd.hh.

◆ second

template<class JHit_t >
const JHit_t& JTRIGGER::JBinder2nd< JHit_t >::second
protected

Definition at line 57 of file JBind2nd.hh.


The documentation for this class was generated from the following file:
JTRIGGER::JBinder2nd::match
const JMatch< JHit_t > & match
Definition: JBind2nd.hh:56
JTRIGGER::JBinder2nd::second
const JHit_t & second
Definition: JBind2nd.hh:57