18 : parameterHoldingLabels_(label, std::
vector<std::
string>(), isTracked), type_(iType), isTracked_(isTracked) {}
21 : parameterHoldingLabels_(label, std::
vector<std::
string>(), isTracked), type_(iType), isTracked_(isTracked) {}
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)";
80 if (optional || !writeToCfi) {
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:";
145 return exists(pset) ? 1 : 0;
T getUntrackedParameter(std::string const &, T const &) const
~AllowedLabelsDescriptionBase() override
void validate(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) 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
void writeCfi(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) 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
bool exists_(ParameterSet const &pset) const override
std::string const & comment() const
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
void print(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
static void printSpaces(std::ostream &os, int n)
bool exists(ParameterSet const &pset) const
void printNestedContentBase_(std::ostream &os, bool optional, DocFormatHelper &dfh) const
bool partiallyExists_(ParameterSet const &pset) const override
T getParameter(std::string const &) const
ParameterDescription< std::vector< std::string > > parameterHoldingLabels_
bool hasNestedContent_() const override
void checkAndGetLabelsAndTypes(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > ¶meterTypes, std::set< ParameterTypes > &wildcardTypes) const override
ParameterTypes type() const
std::string const & label() const