CMS 3D CMS Logo

Public Member Functions | Private Attributes

MaxObjectPairSelector< F > Struct Template Reference

#include <MaxObjectPairSelector.h>

List of all members.

Public Member Functions

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

Private Attributes

fun_
double max_

Detailed Description

template<typename F>
struct MaxObjectPairSelector< F >

Definition at line 11 of file MaxObjectPairSelector.h.


Constructor & Destructor Documentation

template<typename F >
MaxObjectPairSelector< F >::MaxObjectPairSelector ( double  max) [inline]

Definition at line 12 of file MaxObjectPairSelector.h.

                                      : 
    max_( max ), fun_() { }

Member Function Documentation

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

Definition at line 15 of file MaxObjectPairSelector.h.

References MaxObjectPairSelector< F >::fun_, and MaxObjectPairSelector< F >::max_.

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

Member Data Documentation

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

Definition at line 21 of file MaxObjectPairSelector.h.

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

template<typename F >
double MaxObjectPairSelector< F >::max_ [private]

Definition at line 20 of file MaxObjectPairSelector.h.

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