24 std::set<ParameterTypes>& parameterTypes,
25 std::set<ParameterTypes>& wildcardTypes)
const {
30 std::set<std::string>& validatedLabels,
31 bool optional)
const {
34 std::vector<std::string> allowedLabels;
43 std::placeholders::_1,
45 std::ref(validatedLabels)));
52 bool& wroteSomething)
const {
60 if (dfh.
pass() == 1) {
69 os <<
" (do not write to cfi)";
71 os <<
" see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
81 os <<
" (do not write to cfi)";
82 if (optional || !writeToCfi) {
87 os <<
"see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
115 <<
" - allowed labels description\n";
117 os <<
"The following parameter contains a list of parameter labels\n";
119 os <<
"which are allowed to be in the PSet\n";
128 os <<
"type of allowed parameters:";
147 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