CMS 3D CMS Logo

Public Member Functions | Private Attributes

MinObjectPairSelector< F > Struct Template Reference

#include <MinObjectPairSelector.h>

List of all members.

Public Member Functions

 MinObjectPairSelector (double min)
template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const

Private Attributes

fun_
double min_

Detailed Description

template<typename F>
struct MinObjectPairSelector< F >

Definition at line 11 of file MinObjectPairSelector.h.


Constructor & Destructor Documentation

template<typename F >
MinObjectPairSelector< F >::MinObjectPairSelector ( double  min) [inline]

Definition at line 12 of file MinObjectPairSelector.h.

                                      : 
    min_( min ), fun_() { }

Member Function Documentation

template<typename F >
template<typename T1 , typename T2 >
bool MinObjectPairSelector< F >::operator() ( const T1 &  t1,
const T2 &  t2 
) const [inline]

Definition at line 15 of file MinObjectPairSelector.h.

References MinObjectPairSelector< F >::fun_, and MinObjectPairSelector< F >::min_.

                                                        { 
    return min_ <= fun_( t1, t2 ); 
  }

Member Data Documentation

template<typename F >
F MinObjectPairSelector< F >::fun_ [private]

Definition at line 21 of file MinObjectPairSelector.h.

Referenced by MinObjectPairSelector< F >::operator()().

template<typename F >
double MinObjectPairSelector< F >::min_ [private]

Definition at line 20 of file MinObjectPairSelector.h.

Referenced by MinObjectPairSelector< F >::operator()().