33 std::set<ParameterTypes> & parameterTypes,
34 std::set<ParameterTypes> & wildcardTypes)
const {
42 std::set<std::string> & validatedLabels,
43 bool optional)
const {
47 std::vector<std::string> allowedLabels;
56 std::placeholders::_1,
58 std::ref(validatedLabels)));
65 bool & startWithComma,
67 bool & wroteSomething)
const {
78 if (dfh.
pass() == 1) {
85 if (optional) os <<
" optional";
87 if (!writeToCfi) os <<
" (do not write to cfi)";
89 os <<
" see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
97 if (optional) os <<
"optional";
98 if (!writeToCfi) os <<
" (do not write to cfi)";
99 if (optional || !writeToCfi) {
104 os <<
"see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
130 if (!dfh.
brief()) os <<
"\n";
147 <<
" - allowed labels description\n";
149 os <<
"The following parameter contains a list of parameter labels\n";
151 os <<
"which are allowed to be in the PSet\n";
152 if (!dfh.
brief()) os <<
"\n";
159 os <<
"type of allowed parameters:";
160 if (dfh.
brief()) os <<
" ";
184 return exists(pset) ? 1 : 0;
bool exists_(ParameterSet const &pset) const override
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
~AllowedLabelsDescriptionBase() override
virtual void validateAllowedLabel_(std::string const &allowedLabel, ParameterSet &pset, std::set< std::string > &validatedLabels) const =0
void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const override
void validate(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
void writeCfi_(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const override
std::string parameterTypeEnumToString(ParameterTypes iType)
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
bool partiallyExists_(ParameterSet const &pset) const override
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
std::string const & comment() const
void print(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
bool hasNestedContent_() const override
int howManyXORSubNodesExist_(ParameterSet const &pset) const override
static void printSpaces(std::ostream &os, int n)
bool exists(ParameterSet const &pset) const
void printNestedContentBase_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
ParameterDescription< std::vector< std::string > > parameterHoldingLabels_
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override
void checkAndGetLabelsAndTypes(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const override
void writeCfi(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const
ParameterTypes type() const
std::string const & label() const