#include <Fireworks/Core/interface/FWEnumParameter.h>
Public Member Functions | |
bool | addEntry (Long_t id, const std::string &txt) |
const std::map< Long_t, std::string > & | entryMap () const |
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 () | |
Private Member Functions | |
FWEnumParameter (const FWEnumParameter &) | |
const FWEnumParameter & | operator= (const FWEnumParameter &) |
Private Attributes | |
std::map< Long_t, std::string > | m_enumEntries |
Description: Specialization of FWLongParameter to allow drop-down menu GUI.
Usage: <usage>
Definition at line 30 of file FWEnumParameter.h.
FWEnumParameter::FWEnumParameter | ( | ) | [inline] |
Definition at line 34 of file FWEnumParameter.h.
: FWLongParameter() {}
FWEnumParameter::FWEnumParameter | ( | FWParameterizable * | iParent, |
const std::string & | iName, | ||
const long & | iDefault = 0 , |
||
long | iMin = -1 , |
||
long | iMax = -1 |
||
) | [inline] |
Definition at line 37 of file FWEnumParameter.h.
: FWLongParameter(iParent, iName, iDefault, iMin, iMax) {}
FWEnumParameter::FWEnumParameter | ( | FWParameterizable * | iParent, |
const std::string & | iName, | ||
K | iCallback, | ||
const long & | iDefault = 0 , |
||
long | iMin = -1 , |
||
long | iMax = -1 |
||
) | [inline] |
Definition at line 46 of file FWEnumParameter.h.
: FWLongParameter(iParent, iName, iCallback, iDefault, iMin, iMax) {}
FWEnumParameter::FWEnumParameter | ( | const FWEnumParameter & | ) | [private] |
bool FWEnumParameter::addEntry | ( | Long_t | id, |
const std::string & | txt | ||
) | [inline] |
Definition at line 61 of file FWEnumParameter.h.
References m_enumEntries.
Referenced by CmsShowCommon::CmsShowCommon(), FWEveView::FWEveView(), FWGeometryTableView::FWGeometryTableView(), FWLegoViewBase::FWLegoViewBase(), and FWViewEnergyScale::FWViewEnergyScale().
{ return m_enumEntries.insert(std::make_pair(id, txt)).second; }
const std::map<Long_t, std::string>& FWEnumParameter::entryMap | ( | ) | const [inline] |
Definition at line 66 of file FWEnumParameter.h.
References m_enumEntries.
Referenced by FWEnumParameterSetter::build().
{ return m_enumEntries; }
const FWEnumParameter& FWEnumParameter::operator= | ( | const FWEnumParameter & | ) | [private] |
std::map<Long_t, std::string> FWEnumParameter::m_enumEntries [private] |
Definition at line 73 of file FWEnumParameter.h.
Referenced by addEntry(), and entryMap().