CMS 3D CMS Logo

Public Member Functions | Private Attributes

MinFunctionSelector< T, fun > Struct Template Reference

#include <MinFunctionSelector.h>

List of all members.

Public Member Functions

 MinFunctionSelector (double min)
bool operator() (const T &t) const

Private Attributes

double min_

Detailed Description

template<typename T, double(T::*)() const fun>
struct MinFunctionSelector< T, fun >

Definition at line 11 of file MinFunctionSelector.h.


Constructor & Destructor Documentation

template<typename T , double(T::*)() const fun>
MinFunctionSelector< T, fun >::MinFunctionSelector ( double  min) [inline]

Definition at line 12 of file MinFunctionSelector.h.

                                    : 
    min_( min ) { }

Member Function Documentation

template<typename T , double(T::*)() const fun>
bool MinFunctionSelector< T, fun >::operator() ( const T t) const [inline]

Definition at line 14 of file MinFunctionSelector.h.

References MinFunctionSelector< T, fun >::min_.

{ return (t.*fun)() >= min_; }

Member Data Documentation

template<typename T , double(T::*)() const fun>
double MinFunctionSelector< T, fun >::min_ [private]

Definition at line 16 of file MinFunctionSelector.h.

Referenced by MinFunctionSelector< T, fun >::operator()().