#include <ParameterSwitch.h>
Public Types | |
typedef std::map< T, edm::value_ptr < ParameterDescriptionNode > > | CaseMap |
typedef std::map< T, edm::value_ptr < ParameterDescriptionNode > >::const_iterator | CaseMapConstIter |
Public Member Functions | |
virtual ParameterDescriptionNode * | clone () const |
ParameterSwitch (ParameterDescription< T > const &switchParameter, std::auto_ptr< ParameterDescriptionCases< T > > cases) | |
Public Member Functions inherited from edm::ParameterSwitchBase | |
virtual | ~ParameterSwitchBase () |
Public Member Functions inherited from edm::ParameterDescriptionNode | |
void | checkAndGetLabelsAndTypes (std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const |
std::string const & | comment () const |
bool | exists (ParameterSet const &pset) const |
bool | hasNestedContent () |
int | howManyXORSubNodesExist (ParameterSet const &pset) const |
bool | partiallyExists (ParameterSet const &pset) const |
void | print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) |
void | printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh) |
void | setComment (std::string const &value) |
void | setComment (char const *value) |
void | validate (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const |
void | writeCfi (std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const |
virtual | ~ParameterDescriptionNode () |
Private Member Functions | |
virtual void | checkAndGetLabelsAndTypes_ (std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const |
virtual bool | exists_ (ParameterSet const &pset) const |
virtual void | print_ (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) |
virtual void | printNestedContent_ (std::ostream &os, bool optional, DocFormatHelper &dfh) |
virtual void | validate_ (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const |
virtual void | writeCfi_ (std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const |
Static Private Member Functions | |
static void | checkCaseLabels (std::pair< T, edm::value_ptr< ParameterDescriptionNode > > const &thePair, std::set< std::string > &labels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) |
Private Attributes | |
CaseMap | cases_ |
ParameterDescription< T > | switch_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::ParameterDescriptionNode | |
static void | printSpaces (std::ostream &os, int n) |
Protected Member Functions inherited from edm::ParameterSwitchBase | |
virtual bool | hasNestedContent_ () |
void | insertAndCheckLabels (std::string const &switchLabel, std::set< std::string > &usedLabels, std::set< std::string > &labels) const |
void | insertAndCheckTypes (ParameterTypes switchType, std::set< ParameterTypes > const &caseParameterTypes, std::set< ParameterTypes > const &caseWildcardTypes, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const |
void | printBase (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh, std::string const &switchLabel, bool isTracked, std::string const &typeString) const |
void | printNestedContentBase (std::ostream &os, DocFormatHelper &dfh, DocFormatHelper &new_dfh, std::string const &switchLabel) |
void | throwDuplicateCaseValues (std::string const &switchLabel) const |
void | throwNoCaseForDefault (std::string const &switchLabel) const |
void | throwNoCaseForSwitchValue (std::string const &message) const |
Static Protected Member Functions inherited from edm::ParameterSwitchBase | |
template<typename T > | |
static void | printCaseT (std::pair< T, edm::value_ptr< ParameterDescriptionNode > > const &p, std::ostream &os, bool optional, DocFormatHelper &dfh, std::string const &switchLabel) |
Protected Attributes inherited from edm::ParameterDescriptionNode | |
std::string | comment_ |
Definition at line 27 of file ParameterSwitch.h.
typedef std::map<T, edm::value_ptr<ParameterDescriptionNode> > edm::ParameterSwitch< T >::CaseMap |
Definition at line 30 of file ParameterSwitch.h.
typedef std::map<T, edm::value_ptr<ParameterDescriptionNode> >::const_iterator edm::ParameterSwitch< T >::CaseMapConstIter |
Definition at line 31 of file ParameterSwitch.h.
|
inline |
Definition at line 33 of file ParameterSwitch.h.
References edm::ParameterDescriptionBase::label(), and edm::ParameterSwitchBase::throwDuplicateCaseValues().
Referenced by edm::ParameterSwitch< T >::clone().
|
inlineprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 49 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, edm::ParameterSwitch< T >::checkCaseLabels(), edm::for_all(), edm::ParameterSwitchBase::insertAndCheckLabels(), edm::ParameterSwitchBase::insertAndCheckTypes(), edm::ParameterSwitch< T >::switch_, and edm::ParameterSwitchBase::throwNoCaseForDefault().
|
inlinestaticprivate |
Definition at line 175 of file ParameterSwitch.h.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
inlinevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 43 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::ParameterSwitch().
|
inlineprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 173 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::switch_.
|
inlineprivatevirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 126 of file ParameterSwitch.h.
References edm::parameterTypeEnumToString(), edm::ParameterSwitchBase::printBase(), and edm::ParameterSwitch< T >::switch_.
|
inlineprivatevirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 133 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, edm::for_all(), edm::DocFormatHelper::indent(), edm::ParameterSwitchBase::printNestedContentBase(), edm::DocFormatHelper::setCounter(), edm::DocFormatHelper::setPass(), and edm::ParameterSwitch< T >::switch_.
|
inlineprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 77 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), getDQMSummary::iter, contentValuesCheck::ss, edm::ParameterSwitch< T >::switch_, and edm::ParameterSwitchBase::throwNoCaseForSwitchValue().
|
inlineprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 114 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, and edm::ParameterSwitch< T >::switch_.
|
private |
Definition at line 183 of file ParameterSwitch.h.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_(), edm::ParameterSwitch< T >::printNestedContent_(), edm::ParameterSwitch< T >::validate_(), and edm::ParameterSwitch< T >::writeCfi_().
|
private |
Definition at line 182 of file ParameterSwitch.h.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_(), edm::ParameterSwitch< T >::exists_(), edm::ParameterSwitch< T >::print_(), edm::ParameterSwitch< T >::printNestedContent_(), edm::ParameterSwitch< T >::validate_(), and edm::ParameterSwitch< T >::writeCfi_().