CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RangeObjectPairSelector< F > Struct Template Reference

#include <RangeObjectPairSelector.h>

List of all members.

Public Types

typedef F function

Public Member Functions

template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const
 RangeObjectPairSelector (double min, double max, const F &fun)
 RangeObjectPairSelector (double min, double max)

Private Attributes

fun_
double max_
double min_

Detailed Description

template<typename F>
struct RangeObjectPairSelector< F >

Definition at line 11 of file RangeObjectPairSelector.h.


Member Typedef Documentation

template<typename F >
typedef F RangeObjectPairSelector< F >::function

Definition at line 12 of file RangeObjectPairSelector.h.


Constructor & Destructor Documentation

template<typename F >
RangeObjectPairSelector< F >::RangeObjectPairSelector ( double  min,
double  max,
const F &  fun 
) [inline]

Definition at line 13 of file RangeObjectPairSelector.h.

                                                                   : 
    min_( min ), max_( max ), fun_( fun ) { }
template<typename F >
RangeObjectPairSelector< F >::RangeObjectPairSelector ( double  min,
double  max 
) [inline]

Definition at line 15 of file RangeObjectPairSelector.h.

                                                    : 
    min_( min ), max_( max ), fun_() { }

Member Function Documentation

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

Definition at line 18 of file RangeObjectPairSelector.h.

References RangeObjectPairSelector< F >::fun_, RangeObjectPairSelector< F >::max_, RangeObjectPairSelector< F >::min_, and x.

                                                        { 
    double x = fun_( t1, t2 );
    return ( min_ <= x && x <= max_ ); 
  }

Member Data Documentation

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

Definition at line 25 of file RangeObjectPairSelector.h.

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

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

Definition at line 24 of file RangeObjectPairSelector.h.

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

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

Definition at line 24 of file RangeObjectPairSelector.h.

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