#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 | |
ParameterDescriptionNode * | clone () const override |
ParameterSwitch (ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T > > cases) | |
Public Member Functions inherited from edm::ParameterSwitchBase | |
~ParameterSwitchBase () override | |
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 () const |
int | howManyXORSubNodesExist (ParameterSet const &pset) const |
ParameterDescriptionNode () | |
ParameterDescriptionNode (Comment const &iComment) | |
bool | partiallyExists (ParameterSet const &pset) const |
void | print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const |
void | printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh) const |
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 optional, bool &startWithComma, int indentation, bool &wroteSomething) const |
virtual | ~ParameterDescriptionNode () |
Private Member Functions | |
void | checkAndGetLabelsAndTypes_ (std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const override |
bool | exists_ (ParameterSet const &pset) const override |
void | print_ (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override |
void | printNestedContent_ (std::ostream &os, bool optional, DocFormatHelper &dfh) const override |
void | validate_ (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override |
void | writeCfi_ (std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const override |
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 | |
bool | hasNestedContent_ () const override |
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) const |
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 25 of file ParameterSwitch.h.
typedef std::map<T, edm::value_ptr<ParameterDescriptionNode> > edm::ParameterSwitch< T >::CaseMap |
Definition at line 27 of file ParameterSwitch.h.
typedef std::map<T, edm::value_ptr<ParameterDescriptionNode> >::const_iterator edm::ParameterSwitch< T >::CaseMapConstIter |
Definition at line 28 of file ParameterSwitch.h.
|
inline |
Definition at line 30 of file ParameterSwitch.h.
References edm::ParameterDescriptionBase::label(), and edm::ParameterSwitchBase::throwDuplicateCaseValues().
Referenced by edm::ParameterSwitch< T >::clone().
|
inlineoverrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 41 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 151 of file ParameterSwitch.h.
Referenced by edm::ParameterSwitch< T >::checkAndGetLabelsAndTypes_().
|
inlineoverridevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 38 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::ParameterSwitch().
|
inlineoverrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 149 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::switch_.
|
inlineoverrideprivatevirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 99 of file ParameterSwitch.h.
References edm::parameterTypeEnumToString(), edm::ParameterSwitchBase::printBase(), and edm::ParameterSwitch< T >::switch_.
|
inlineoverrideprivatevirtual |
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 109 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_.
|
inlineoverrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 63 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), contentValuesCheck::ss, edm::ParameterSwitch< T >::switch_, and edm::ParameterSwitchBase::throwNoCaseForSwitchValue().
|
inlineoverrideprivatevirtual |
Implements edm::ParameterDescriptionNode.
Definition at line 89 of file ParameterSwitch.h.
References edm::ParameterSwitch< T >::cases_, and edm::ParameterSwitch< T >::switch_.
|
private |
Definition at line 159 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 158 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_().