24 std::set<ParameterTypes>& parameterTypes,
25 std::set<ParameterTypes>& wildcardTypes)
const {
30 std::set<std::string>& validatedLabels,
34 std::vector<std::string> allowedLabels;
43 std::placeholders::_1,
45 std::ref(validatedLabels)));
54 bool& wroteSomething)
const {
62 if (dfh.
pass() == 1) {
71 os <<
" (do not write to cfi)";
83 os <<
" (do not write to cfi)";
117 <<
" - allowed labels description\n";
119 os <<
"The following parameter contains a list of parameter labels\n";
121 os <<
"which are allowed to be in the PSet\n";
130 os <<
"type of allowed parameters:";
~AllowedLabelsDescriptionBase() override
std::string const & label() const
void print(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
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
bool exists_(ParameterSet const &pset) const override
int howManyXORSubNodesExist_(ParameterSet const &pset) const 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
ParameterTypes type() const
void printNestedContentBase_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, CfiOptions &, bool &wroteSomething) const override
static void printSpaces(std::ostream &os, int n)
bool partiallyExists_(ParameterSet const &pset) const override
void checkAndGetLabelsAndTypes(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const
std::string const & comment() const
ParameterDescription< std::vector< std::string > > parameterHoldingLabels_
bool exists(ParameterSet const &pset) const
bool hasNestedContent_() 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 optional, bool &startWithComma, int indentation, CfiOptions &options, bool &wroteSomething) const
void validate(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const
cfi::CfiOptions CfiOptions