CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWGenericParameterWithRange< T > Class Template Reference

#include <Fireworks/Core/interface/FWLongParameter.h>

Inheritance diagram for FWGenericParameterWithRange< T >:
FWGenericParameter< T > FWParameterBase FWConfigurable FWEnumParameter

Public Member Functions

 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
template<class K >
 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
 FWGenericParameterWithRange (void)
 
T max () const
 
T min () const
 
- Public Member Functions inherited from FWGenericParameter< T >
void addTo (FWConfiguration &iTo) const override
 
 FWGenericParameter ()
 
 FWGenericParameter (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T())
 
template<class K >
 FWGenericParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T())
 
void set (T iValue)
 
void setFrom (const FWConfiguration &iFrom) override
 
T value () const
 
- Public Member Functions inherited from FWParameterBase
 FWParameterBase (FWParameterizable *iParent, const std::string &iName)
 
const std::string & name () const
 
 ~FWParameterBase () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Attributes

T m_max
 
T m_min
 

Additional Inherited Members

- Public Types inherited from FWGenericParameter< T >
typedef T value_type
 
- Public Attributes inherited from FWGenericParameter< T >
sigc::signal< void, Tchanged_
 

Detailed Description

template<class T>
class FWGenericParameterWithRange< T >

Description: Provides access to a simple double parameter

Usage: If min and max values are both identical than no restriction is placed on the allowed value

Definition at line 27 of file FWGenericParameterWithRange.h.

Constructor & Destructor Documentation

◆ FWGenericParameterWithRange() [1/3]

template<class T>
FWGenericParameterWithRange< T >::FWGenericParameterWithRange ( void  )
inline

Definition at line 29 of file FWGenericParameterWithRange.h.

29 : FWGenericParameter<T>(), m_min(-1), m_max(-1) {}

◆ FWGenericParameterWithRange() [2/3]

template<class T>
FWGenericParameterWithRange< T >::FWGenericParameterWithRange ( FWParameterizable iParent,
const std::string &  iName,
const T iDefault = T(),
T  iMin = -1,
T  iMax = -1 
)
inline

Definition at line 31 of file FWGenericParameterWithRange.h.

33  : FWGenericParameter<T>(iParent, iName, iDefault), m_min(iMin), m_max(iMax) {}

◆ FWGenericParameterWithRange() [3/3]

template<class T>
template<class K >
FWGenericParameterWithRange< T >::FWGenericParameterWithRange ( FWParameterizable iParent,
const std::string &  iName,
iCallback,
const T iDefault = T(),
T  iMin = -1,
T  iMax = -1 
)
inline

Definition at line 36 of file FWGenericParameterWithRange.h.

42  : FWGenericParameter<T>(iParent, iName, iCallback, iDefault), m_min(iMin), m_max(iMax) {}

Member Function Documentation

◆ max()

template<class T>
T FWGenericParameterWithRange< T >::max ( ) const
inline

◆ min()

template<class T>
T FWGenericParameterWithRange< T >::min ( ) const
inline

Member Data Documentation

◆ m_max

template<class T>
T FWGenericParameterWithRange< T >::m_max
private

Definition at line 51 of file FWGenericParameterWithRange.h.

Referenced by FWGenericParameterWithRange< T >::max().

◆ m_min

template<class T>
T FWGenericParameterWithRange< T >::m_min
private

Definition at line 50 of file FWGenericParameterWithRange.h.

Referenced by FWGenericParameterWithRange< T >::min().

FWGenericParameterWithRange::m_max
T m_max
Definition: FWGenericParameterWithRange.h:51
FWGenericParameter
Definition: FWGenericParameter.h:31
FWGenericParameterWithRange::m_min
T m_min
Definition: FWGenericParameterWithRange.h:50