test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PairSelector< S1, S2 > Struct Template Reference

#include <PairSelector.h>

Public Member Functions

template<typename T >
bool operator() (const T &t) const
 
 PairSelector (const S1 &s1, const S2 &s2)
 

Private Attributes

S1 s1_
 
S2 s2_
 

Detailed Description

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

Definition at line 11 of file PairSelector.h.

Constructor & Destructor Documentation

template<typename S1, typename S2>
PairSelector< S1, S2 >::PairSelector ( const S1 &  s1,
const S2 &  s2 
)
inline

Definition at line 12 of file PairSelector.h.

12 : s1_(s1), s2_(s2) { }
tuple s2
Definition: indexGen.py:106

Member Function Documentation

template<typename S1, typename S2>
template<typename T >
bool PairSelector< S1, S2 >::operator() ( const T t) const
inline

Definition at line 14 of file PairSelector.h.

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

14  {
15  return s1_(t.first) && s2_(t.second);
16  }

Member Data Documentation

template<typename S1, typename S2>
S1 PairSelector< S1, S2 >::s1_
private

Definition at line 18 of file PairSelector.h.

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

template<typename S1, typename S2>
S2 PairSelector< S1, S2 >::s2_
private

Definition at line 19 of file PairSelector.h.

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