CMS 3D CMS Logo

MaxFunctionSelector< T, fun > Struct Template Reference

#include <PhysicsTools/Utilities/interface/MaxFunctionSelector.h>

List of all members.

Public Member Functions

 MaxFunctionSelector (double max)
bool operator() (const T &t) const

Private Attributes

double max_


Detailed Description

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

Definition at line 11 of file MaxFunctionSelector.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file MaxFunctionSelector.h.

00012                                     : 
00013     max_( max ) { }


Member Function Documentation

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

Definition at line 14 of file MaxFunctionSelector.h.

References MaxFunctionSelector< T, fun >::max_.

00014 { return (t.*fun)() <= max_; }


Member Data Documentation

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

Definition at line 17 of file MaxFunctionSelector.h.

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


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:28:04 2009 for CMSSW by  doxygen 1.5.4