|
ParameterDescriptionNode * | clone () const override |
|
| ParameterDescription (std::string const &iLabel, ParameterSetDescription const &psetDesc, bool isTracked, std::vector< ParameterSet > const &vPset, Comment const &iComment=Comment()) |
|
| ParameterDescription (char const *iLabel, ParameterSetDescription const &psetDesc, bool isTracked, std::vector< ParameterSet > const &vPset, Comment const &iComment=Comment()) |
|
| ParameterDescription (std::string const &iLabel, ParameterSetDescription const &psetDesc, bool isTracked, Comment const &iComment=Comment()) |
|
| ParameterDescription (char const *iLabel, ParameterSetDescription const &psetDesc, bool isTracked, Comment const &iComment=Comment()) |
|
ParameterSetDescription const * | parameterSetDescription () const override |
|
ParameterSetDescription * | parameterSetDescription () override |
|
void | setPartOfDefaultOfVPSet (bool value) |
|
| ~ParameterDescription () override |
|
bool | hasDefault () const |
|
bool | isTracked () const |
|
std::string const & | label () const |
|
ParameterTypes | type () const |
|
| ~ParameterDescriptionBase () override |
|
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 &startWithComma, int indentation, bool &wroteSomething) const |
|
virtual | ~ParameterDescriptionNode () |
|
template<>
class edm::ParameterDescription< std::vector< ParameterSet > >
Definition at line 236 of file ParameterDescription.h.
Reimplemented from edm::ParameterDescriptionNode.
Definition at line 242 of file ParameterDescription.cc.
References edm::DocFormatHelper::brief(), edm::DocFormatHelper::counter(), edm::fillDescriptionFromPSet(), edm::ParameterDescriptionBase::hasDefault(), mps_fire::i, edm::DocFormatHelper::indentation(), edm::DocFormatHelper::init(), edm::ParameterDescriptionBase::label(), edm::DocFormatHelper::offsetSectionContent(), edm::DocFormatHelper::parent(), edm::ParameterSetDescription::print(), edm::ParameterDescriptionNode::printSpaces(), edm::DocFormatHelper::section(), edm::DocFormatHelper::setIndentation(), edm::DocFormatHelper::setSection(), AlCaHLTBitMon_QueryRunRegistry::string, edm::DocFormatHelper::TOP, and mitigatedMETSequence_cff::U.
245 int indentation = dfh.indentation();
252 os <<
"Section " << dfh.section() <<
"." << dfh.counter() <<
" " <<
label() <<
" VPSet description:\n";
255 os <<
"All elements will be validated using the PSet description in Section " << dfh.section() <<
"." 256 << dfh.counter() <<
".1.\n";
259 os <<
"Section " << dfh.section() <<
"." << dfh.counter() <<
" " 260 <<
" VPSet description for VPSet that is part of the default of a containing VPSet:\n";
265 unsigned subsectionOffset = 2;
267 subsectionOffset = 1;
271 os <<
"The default VPSet is empty.\n";
273 os <<
"The default VPSet has 1 element.\n";
275 os <<
"The default VPSet has " <<
vPset_.size() <<
" elements.\n";
278 for (
unsigned i = 0;
i <
vPset_.size(); ++
i) {
280 os <<
"[" << (
i) <<
"]: see Section " << dfh.section() <<
"." << dfh.counter() <<
"." 281 << (
i + subsectionOffset) <<
"\n";
285 os <<
"Does not have a default VPSet.\n";
292 std::stringstream ss;
293 ss << dfh.section() <<
"." << dfh.counter() <<
".1";
297 os <<
"Section " << newSection <<
" description of PSet used to validate elements of VPSet:\n";
301 DocFormatHelper new_dfh(dfh);
303 new_dfh.setSection(newSection);
311 for (
unsigned i = 0;
i <
vPset_.size(); ++
i) {
312 std::stringstream ss;
313 ss << dfh.section() <<
"." << dfh.counter() <<
"." << (
i + subsectionOffset);
317 os <<
"Section " << newSection <<
" PSet description of " 318 <<
"default VPSet element [" <<
i <<
"]\n";
322 DocFormatHelper new_dfh(dfh);
324 new_dfh.setSection(newSection);
331 defaultDescription.print(os, new_dfh);
void fillDescriptionFromPSet(ParameterSet const &pset, ParameterSetDescription &desc)
bool partOfDefaultOfVPSet_
value_ptr< ParameterSetDescription > psetDesc_
static void printSpaces(std::ostream &os, int n)
std::vector< ParameterSet > vPset_
std::string const & label() const