CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
edm::AllowedLabelsDescription< T > Class Template Reference

#include <AllowedLabelsDescription.h>

Inheritance diagram for edm::AllowedLabelsDescription< T >:
edm::AllowedLabelsDescriptionBase edm::ParameterDescriptionNode

Public Member Functions

 AllowedLabelsDescription (std::string const &label, bool isTracked)
 
 AllowedLabelsDescription (char const *label, bool isTracked)
 
ParameterDescriptionNodeclone () const override
 
 ~AllowedLabelsDescription () override
 
- Public Member Functions inherited from edm::AllowedLabelsDescriptionBase
bool isTracked () const
 
ParameterTypes type () const
 
 ~AllowedLabelsDescriptionBase () override
 
- Public Member Functions inherited from edm::ParameterDescriptionNode
void checkAndGetLabelsAndTypes (std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const
 
std::string const & comment () const
 
bool exists (ParameterSet const &pset) const
 
bool hasNestedContent () const
 
int howManyXORSubNodesExist (ParameterSet const &pset) const
 
virtual bool isWildcard () const
 
 ParameterDescriptionNode ()
 
 ParameterDescriptionNode (Comment const &iComment)
 
bool partiallyExists (ParameterSet const &pset) const
 
void print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const
 
void printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh) const
 
void setComment (std::string const &value)
 
void setComment (char const *value)
 
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
 
virtual ~ParameterDescriptionNode ()
 

Private Member Functions

void validateAllowedLabel_ (std::string const &allowedLabel, ParameterSet &pset, std::set< std::string > &validatedLabels) const override
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::ParameterDescriptionNode
static void printSpaces (std::ostream &os, int n)
 
- Protected Member Functions inherited from edm::AllowedLabelsDescriptionBase
 AllowedLabelsDescriptionBase (std::string const &label, ParameterTypes iType, bool isTracked)
 
 AllowedLabelsDescriptionBase (char const *label, ParameterTypes iType, bool isTracked)
 
void printNestedContentBase_ (std::ostream &os, bool optional, DocFormatHelper &dfh) const
 
- Protected Attributes inherited from edm::ParameterDescriptionNode
std::string comment_
 

Detailed Description

template<class T>
class edm::AllowedLabelsDescription< T >

Definition at line 23 of file AllowedLabelsDescription.h.

Constructor & Destructor Documentation

◆ AllowedLabelsDescription() [1/2]

template<class T>
edm::AllowedLabelsDescription< T >::AllowedLabelsDescription ( std::string const &  label,
bool  isTracked 
)
inline

Definition at line 25 of file AllowedLabelsDescription.h.

Referenced by edm::AllowedLabelsDescription< T >::clone(), and edm::AllowedLabelsDescription< ParameterSetDescription >::clone().

26  : AllowedLabelsDescriptionBase(label, ParameterTypeToEnum::toEnum<T>(), isTracked) {}
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
char const * label

◆ AllowedLabelsDescription() [2/2]

template<class T>
edm::AllowedLabelsDescription< T >::AllowedLabelsDescription ( char const *  label,
bool  isTracked 
)
inline

Definition at line 28 of file AllowedLabelsDescription.h.

29  : AllowedLabelsDescriptionBase(label, ParameterTypeToEnum::toEnum<T>(), isTracked) {}
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
char const * label

◆ ~AllowedLabelsDescription()

template<class T>
edm::AllowedLabelsDescription< T >::~AllowedLabelsDescription ( )
inlineoverride

Definition at line 31 of file AllowedLabelsDescription.h.

31 {}

Member Function Documentation

◆ clone()

template<class T>
ParameterDescriptionNode* edm::AllowedLabelsDescription< T >::clone ( void  ) const
inlineoverridevirtual

Implements edm::ParameterDescriptionNode.

Definition at line 33 of file AllowedLabelsDescription.h.

References edm::AllowedLabelsDescription< T >::AllowedLabelsDescription().

33 { return new AllowedLabelsDescription(*this); }
AllowedLabelsDescription(std::string const &label, bool isTracked)

◆ validateAllowedLabel_()

template<class T>
void edm::AllowedLabelsDescription< T >::validateAllowedLabel_ ( std::string const &  allowedLabel,
ParameterSet pset,
std::set< std::string > &  validatedLabels 
) const
inlineoverrideprivatevirtual

Implements edm::AllowedLabelsDescriptionBase.

Definition at line 36 of file AllowedLabelsDescription.h.

References edm::AllowedLabelsDescriptionBase::isTracked(), and muonDTDigis_cfi::pset.

38  {
39  if (pset.existsAs<T>(allowedLabel, isTracked())) {
40  validatedLabels.insert(allowedLabel);
41  }
42  }
long double T