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)));
50 std::ostream& os,
bool optional,
bool& startWithComma,
int indentation,
bool& wroteSomething)
const {
58 if (dfh.
pass() == 1) {
67 os <<
" (do not write to cfi)";
69 os <<
" see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
79 os <<
" (do not write to cfi)";
85 os <<
"see Section " << dfh.
section() <<
"." << dfh.
counter() <<
"\n";
113 <<
" - allowed labels description\n";
115 os <<
"The following parameter contains a list of parameter labels\n";
117 os <<
"which are allowed to be in the PSet\n";
126 os <<
"type of allowed parameters:";
~AllowedLabelsDescriptionBase() override
void writeCfi(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const
std::string const & label() const
void print(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const override
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
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 validate(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const