CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MinFunctionSelector< T, fun > Struct Template Reference

#include <MinFunctionSelector.h>

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.

12  :
13  min_( min ) { }
T min(T a, T b)
Definition: MathUtil.h:58

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_.

14 { 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()().