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;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void validateAllowedLabel_(std::string const &allowedLabel, ParameterSet &pset, std::set< std::string > &validatedLabels) const =0
void validate(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
virtual ~AllowedLabelsDescriptionBase()
virtual bool partiallyExists_(ParameterSet const &pset) const
std::string parameterTypeEnumToString(ParameterTypes iType)
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
virtual void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const
std::string const & comment() const
virtual bool hasNestedContent_() const
void print(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
virtual bool exists_(ParameterSet const &pset) const
static void printSpaces(std::ostream &os, int n)
virtual void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
bool exists(ParameterSet const &pset) const
void printNestedContentBase_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
ParameterDescription< std::vector< std::string > > parameterHoldingLabels_
virtual void writeCfi_(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const
virtual void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
void checkAndGetLabelsAndTypes(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const
void writeCfi(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const
virtual int howManyXORSubNodesExist_(ParameterSet const &pset) const
ParameterTypes type() const
std::string const & label() const