51 std::set<std::string>& validatedLabels,
60 std::placeholders::_1,
68 psetDesc_->validate(*containedPSet);
86 os <<
"Section " << dfh.
section() <<
"." << dfh.
counter() <<
" description of PSet matching wildcard:";
100 psetDesc_->print(
os, new_dfh);
110 return !parameterNames.
empty();
111 return parameterNames.size() == 1
U;
117 os <<
"PSetTemplate(";
164 std::set<std::string>& validatedLabels,
166 std::vector<std::string> parameterNames =
pset.getParameterNamesForType<std::vector<ParameterSet> >(isTracked());
167 validateMatchingNames(parameterNames, validatedLabels,
optional);
173 std::placeholders::_1,
182 for (
unsigned i = 0;
i < vpsetEntry->
size(); ++
i) {
203 <<
" description used to validate all PSets which are in the VPSet matching the wildcard:";
208 std::stringstream
ss;
217 psetDesc_->print(
os, new_dfh);
224 std::vector<std::string> parameterNames =
pset.getParameterNamesForType<std::vector<ParameterSet> >(isTracked());
227 return !parameterNames.empty();
228 return parameterNames.size() == 1
U;
WildcardValidationCriteria
~ParameterWildcard() override
void throwIfInvalidPattern(char const *pattern) const
ParameterDescriptionNode * clone() const override
virtual bool hasNestedContent_() const
virtual void writeTemplate(std::ostream &os, int indentation, CfiOptions &) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
void validateMatchingNames(std::vector< std::string > const &matchingNames, std::set< std::string > &validatedLabels, bool optional) const
static void printSpaces(std::ostream &os, int n)
WildcardValidationCriteria criteria() const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
ParameterWildcard(std::string const &pattern, WildcardValidationCriteria criteria, bool isTracked)
ParameterSet & psetInVector(int i)
bool exists_(ParameterSet const &pset) const override
std::vector< ParameterSet >::size_type size() const
virtual void printNestedContent_(std::ostream &, bool, DocFormatHelper &) const
cfi::CfiOptions CfiOptions
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override