CMS 3D CMS Logo

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

◆ MinFunctionSelector()

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

Definition at line 12 of file MinFunctionSelector.h.

12 : min_(min) {}

Member Function Documentation

◆ operator()()

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

Definition at line 13 of file MinFunctionSelector.h.

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

References MinFunctionSelector< T, fun >::min_, and OrderedSet::t.

Member Data Documentation

◆ min_

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

MinFunctionSelector::min_
double min_
Definition: MinFunctionSelector.h:16
min
T min(T a, T b)
Definition: MathUtil.h:58
OrderedSet.t
t
Definition: OrderedSet.py:90