CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 (const FWGenericParameter &)=delete
 
 m_value (iDefault)
 
template<class K >
 m_value (iDefault)
 
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 >
 __pad0__: FWParameterBase(iParent
 
template<class K >
 __pad1__: FWParameterBase(iParent
 
sigc::signal< void, Tchanged_
 
 iName
 

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.

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 )
delete

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 m_enumEntries.

Referenced by FWEnumParameterSetter::build().

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

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