CMS 3D CMS Logo

Public Member Functions | Private Attributes

OrPairSelector< S1, S2 > Struct Template Reference

#include <OrPairSelector.h>

List of all members.

Public Member Functions

template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const
 OrPairSelector (const S1 &s1, const S2 &s2)

Private Attributes

S1 s1_
S2 s2_

Detailed Description

template<typename S1, typename S2>
struct OrPairSelector< S1, S2 >

Definition at line 11 of file OrPairSelector.h.


Constructor & Destructor Documentation

template<typename S1, typename S2>
OrPairSelector< S1, S2 >::OrPairSelector ( const S1 &  s1,
const S2 &  s2 
) [inline]

Definition at line 12 of file OrPairSelector.h.

: s1_(s1), s2_(s2) { }

Member Function Documentation

template<typename S1, typename S2>
template<typename T1 , typename T2 >
bool OrPairSelector< S1, S2 >::operator() ( const T1 &  t1,
const T2 &  t2 
) const [inline]

Definition at line 14 of file OrPairSelector.h.

References OrPairSelector< S1, S2 >::s1_, and OrPairSelector< S1, S2 >::s2_.

                                                      {
    return s1_(t1) || s2_(t2);
  }

Member Data Documentation

template<typename S1, typename S2>
S1 OrPairSelector< S1, S2 >::s1_ [private]

Definition at line 18 of file OrPairSelector.h.

Referenced by OrPairSelector< S1, S2 >::operator()().

template<typename S1, typename S2>
S2 OrPairSelector< S1, S2 >::s2_ [private]

Definition at line 19 of file OrPairSelector.h.

Referenced by OrPairSelector< S1, S2 >::operator()().