CMS 3D CMS Logo

List of all members | Public Member Functions | Private 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)
 
- 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())
 
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 Member Functions

 FWEnumParameter (const FWEnumParameter &)=delete
 
const FWEnumParameteroperator= (const FWEnumParameter &)=delete
 

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, Tchanged_
 

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::FWEnumParameter ( )
inline

Definition at line 32 of file FWEnumParameter.h.

Referenced by entryMap().

32 : FWLongParameter() {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:34
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
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::FWEnumParameter ( const FWEnumParameter )
privatedelete

Member Function Documentation

bool FWEnumParameter::addEntry ( Long_t  id,
const std::string &  txt 
)
inline
const std::map<Long_t, std::string>& FWEnumParameter::entryMap ( ) const
inline

Definition at line 55 of file FWEnumParameter.h.

References FWEnumParameter(), m_enumEntries, and operator=().

Referenced by FWEnumParameterSetter::build().

55 { return m_enumEntries; }
std::map< Long_t, std::string > m_enumEntries
const FWEnumParameter& FWEnumParameter::operator= ( const FWEnumParameter )
privatedelete

Referenced by entryMap().

Member Data Documentation

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

Definition at line 62 of file FWEnumParameter.h.

Referenced by addEntry(), and entryMap().