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(FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
FWGenericParameterWithRange(FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
long double T