Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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>

Public Member Functions

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

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 24 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 32 of file JBind2nd.hh.

33 :
34 match (__match),
35 second(__second)
36 {}
const JHit_t & second
Definition JBind2nd.hh:53
const JMatch< JHit_t > & match
Definition JBind2nd.hh:52

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 45 of file JBind2nd.hh.

46 {
47 return match(first, second);
48 }

Member Data Documentation

◆ match

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

Definition at line 52 of file JBind2nd.hh.

◆ second

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

Definition at line 53 of file JBind2nd.hh.


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