CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWEnumParameter Class Reference

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

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

Public Member Functions

bool addEntry (Long_t id, const std::string &txt)
 
const std::map< Long_t, std::string > & entryMap () const
 
 FWEnumParameter ()
 
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
template<class K >
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
 FWEnumParameter (const FWEnumParameter &)=delete
 
const FWEnumParameteroperator= (const FWEnumParameter &)=delete
 
- Public Member Functions inherited from FWGenericParameterWithRange< T >
 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())
 
 FWGenericParameter (const FWGenericParameter &)=delete
 
const FWGenericParameteroperator= (const FWGenericParameter &)=delete
 
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)
 
 FWParameterBase (const FWParameterBase &)=delete
 
const std::string & name () const
 
const FWParameterBaseoperator= (const FWParameterBase &)=delete
 
 ~FWParameterBase () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

Private Attributes

std::map< Long_t, std::string > m_enumEntries
 

Additional Inherited Members

- Public Types inherited from FWGenericParameter< T >
typedef T value_type
 
- Public Attributes inherited from FWGenericParameter< T >
sigc::signal< void(T)> changed_
 

Detailed Description

Description: Specialization of FWLongParameter to allow drop-down menu GUI.

Usage: <usage>

Definition at line 30 of file FWEnumParameter.h.

Constructor & Destructor Documentation

◆ FWEnumParameter() [1/4]

FWEnumParameter::FWEnumParameter ( )
inline

Definition at line 32 of file FWEnumParameter.h.

32 : FWLongParameter() {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:34

◆ FWEnumParameter() [2/4]

FWEnumParameter::FWEnumParameter ( FWParameterizable iParent,
const std::string &  iName,
const long &  iDefault = 0,
long  iMin = -1,
long  iMax = -1 
)
inline

Definition at line 34 of file FWEnumParameter.h.

36  : FWLongParameter(iParent, iName, iDefault, iMin, iMax) {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:34

◆ FWEnumParameter() [3/4]

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

Definition at line 39 of file FWEnumParameter.h.

45  : FWLongParameter(iParent, iName, iCallback, iDefault, iMin, iMax) {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:34

◆ FWEnumParameter() [4/4]

FWEnumParameter::FWEnumParameter ( const FWEnumParameter )
delete

Member Function Documentation

◆ addEntry()

bool FWEnumParameter::addEntry ( Long_t  id,
const std::string &  txt 
)
inline

◆ entryMap()

const std::map<Long_t, std::string>& FWEnumParameter::entryMap ( ) const
inline

Definition at line 55 of file FWEnumParameter.h.

References m_enumEntries.

Referenced by FWEnumParameterSetter::build().

55 { return m_enumEntries; }
std::map< Long_t, std::string > m_enumEntries

◆ operator=()

const FWEnumParameter& FWEnumParameter::operator= ( const FWEnumParameter )
delete

Member Data Documentation

◆ m_enumEntries

std::map<Long_t, std::string> FWEnumParameter::m_enumEntries
private

Definition at line 62 of file FWEnumParameter.h.

Referenced by addEntry(), and entryMap().