![]() |
|
|||
File indexing completed on 2023-03-17 10:45:40
0001 #ifndef RecoAlgos_MinFunctionSelector_h 0002 #define RecoAlgos_MinFunctionSelector_h 0003 /* \class MinFunctionSelector 0004 * 0005 * \author Luca Lista, INFN 0006 * 0007 * $Id: MinFunctionSelector.h,v 1.1 2009/02/24 14:40:26 llista Exp $ 0008 */ 0009 0010 template <typename T, double (T::*fun)() const> 0011 struct MinFunctionSelector { 0012 MinFunctionSelector(double min) : min_(min) {} 0013 bool operator()(const T& t) const { return (t.*fun)() >= min_; } 0014 0015 private: 0016 double min_; 0017 }; 0018 0019 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |