CMS 3D CMS Logo

FWGenericParameterWithRange.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGenericParameterWithRange_h
2 #define Fireworks_Core_FWGenericParameterWithRange_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWGenericParameterWithRange
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Mar 7 14:36:34 EST 2008
19 //
20 
21 // user include files
23 
24 // forward declarations
25 
26 template <class T>
28 public:
30 
32  FWParameterizable* iParent, const std::string& iName, const T& iDefault = T(), T iMin = -1, T iMax = -1)
33  : FWGenericParameter<T>(iParent, iName, iDefault), m_min(iMin), m_max(iMax) {}
34 
35  template <class K>
37  const std::string& iName,
38  K iCallback,
39  const T& iDefault = T(),
40  T iMin = -1,
41  T iMax = -1)
42  : FWGenericParameter<T>(iParent, iName, iCallback, iDefault), m_min(iMin), m_max(iMax) {}
43 
44  // ---------- const member functions ---------------------
45 
46  T min() const { return m_min; }
47  T max() const { return m_max; }
48 
49 private:
52 };
53 
54 #endif
FWGenericParameterWithRange
Definition: FWGenericParameterWithRange.h:27
FWGenericParameterWithRange::max
T max() const
Definition: FWGenericParameterWithRange.h:47
FWGenericParameterWithRange::m_max
T m_max
Definition: FWGenericParameterWithRange.h:51
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
Definition: FWGenericParameterWithRange.h:31
FWGenericParameter
Definition: FWGenericParameter.h:31
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
Definition: FWGenericParameterWithRange.h:36
FWGenericParameterWithRange::min
T min() const
Definition: FWGenericParameterWithRange.h:46
FWGenericParameterWithRange::FWGenericParameterWithRange
FWGenericParameterWithRange(void)
Definition: FWGenericParameterWithRange.h:29
FWParameterizable
Definition: FWParameterizable.h:29
FWGenericParameterWithRange::m_min
T m_min
Definition: FWGenericParameterWithRange.h:50
FWGenericParameter.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
T
long double T
Definition: Basic3DVectorLD.h:48