CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MaxFunctionSelector< T, fun > Struct Template Reference

#include <MaxFunctionSelector.h>

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

◆ MaxFunctionSelector()

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

Definition at line 12 of file MaxFunctionSelector.h.

12 : max_(max) {}

Member Function Documentation

◆ operator()()

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

Definition at line 13 of file MaxFunctionSelector.h.

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

References MaxFunctionSelector< T, fun >::max_, and submitPVValidationJobs::t.

Member Data Documentation

◆ max_

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

Definition at line 16 of file MaxFunctionSelector.h.

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

MaxFunctionSelector::max_
double max_
Definition: MaxFunctionSelector.h:16
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644