#include <ParameterWildcard.h>
Public Member Functions | |
virtual ParameterDescriptionNode * | clone () const |
ParameterWildcard (char const *pattern, WildcardValidationCriteria criteria, bool isTracked) | |
ParameterWildcard (std::string const &pattern, WildcardValidationCriteria criteria, bool isTracked) | |
virtual | ~ParameterWildcard () |
Private Member Functions | |
virtual bool | exists_ (ParameterSet const &pset) const |
virtual void | validate_ (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const |
Definition at line 22 of file ParameterWildcard.h.
edm::ParameterWildcard< T >::ParameterWildcard | ( | std::string const & | pattern, |
WildcardValidationCriteria | criteria, | ||
bool | isTracked | ||
) | [inline] |
Definition at line 26 of file ParameterWildcard.h.
References edm::ParameterWildcardBase::throwIfInvalidPattern().
Referenced by edm::ParameterWildcard< ParameterSetDescription >::clone(), and edm::ParameterWildcard< T >::clone().
: ParameterWildcardBase(ParameterTypeToEnum::toEnum<T>(), isTracked, criteria) { throwIfInvalidPattern(pattern); }
edm::ParameterWildcard< T >::ParameterWildcard | ( | char const * | pattern, |
WildcardValidationCriteria | criteria, | ||
bool | isTracked | ||
) | [inline] |
Definition at line 31 of file ParameterWildcard.h.
References edm::ParameterWildcardBase::throwIfInvalidPattern().
: ParameterWildcardBase(ParameterTypeToEnum::toEnum<T>(), isTracked, criteria) { throwIfInvalidPattern(pattern); }
virtual edm::ParameterWildcard< T >::~ParameterWildcard | ( | ) | [inline, virtual] |
Definition at line 36 of file ParameterWildcard.h.
{ }
virtual ParameterDescriptionNode* edm::ParameterWildcard< T >::clone | ( | void | ) | const [inline, virtual] |
Implements edm::ParameterDescriptionNode.
Definition at line 38 of file ParameterWildcard.h.
References edm::ParameterWildcard< T >::ParameterWildcard().
{ return new ParameterWildcard(*this); }
virtual bool edm::ParameterWildcard< T >::exists_ | ( | ParameterSet const & | pset | ) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionNode.
Definition at line 53 of file ParameterWildcard.h.
References edm::ParameterWildcardBase::criteria(), edm::ParameterSet::getParameterNamesForType(), edm::ParameterWildcardBase::isTracked(), edm::RequireAtLeastOne, and edm::RequireZeroOrMore.
{ if (criteria() == RequireZeroOrMore) return true; std::vector<std::string> parameterNames = pset.getParameterNamesForType<T>(isTracked()); if (criteria() == RequireAtLeastOne) return parameterNames.size() >= 1U; return parameterNames.size() == 1U; }
virtual void edm::ParameterWildcard< T >::validate_ | ( | ParameterSet & | pset, |
std::set< std::string > & | validatedLabels, | ||
bool | optional | ||
) | const [inline, private, virtual] |
Implements edm::ParameterDescriptionNode.
Definition at line 44 of file ParameterWildcard.h.
References edm::ParameterSet::getParameterNamesForType(), edm::ParameterWildcardBase::isTracked(), and edm::ParameterWildcardBase::validateMatchingNames().
{ std::vector<std::string> parameterNames = pset.getParameterNamesForType<T>(isTracked()); validateMatchingNames(parameterNames, validatedLabels, optional); }