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 (void)
 
 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)
 
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

template<class T>
FWGenericParameterWithRange< T >::FWGenericParameterWithRange ( void  )
inline
template<class T>
FWGenericParameterWithRange< T >::FWGenericParameterWithRange ( FWParameterizable iParent,
const std::string &  iName,
const T iDefault = T(),
T  iMin = -1,
T  iMax = -1 
)
inline
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 47 of file FWGenericParameterWithRange.h.

52  :
53  FWGenericParameter<T>(iParent, iName, iCallback, iDefault),
54  m_min(iMin),
55  m_max(iMax)
56  {}

Member Function Documentation

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

Member Data Documentation

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

Definition at line 66 of file FWGenericParameterWithRange.h.

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

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

Definition at line 65 of file FWGenericParameterWithRange.h.

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