Jpp  18.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

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

Constructor & Destructor Documentation

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

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  }
const JHit_t & second
Definition: JBind2nd.hh:53
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
const JMatch< JHit_t > & match
Definition: JBind2nd.hh:52

Member Data Documentation

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

Definition at line 52 of file JBind2nd.hh.

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: