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 (char const *label, bool isTracked)
 
 AllowedLabelsDescription (std::string 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
 
 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 (char const *value)
 
void setComment (std::string 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 (char const *label, ParameterTypes iType, bool isTracked)
 
 AllowedLabelsDescriptionBase (std::string 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

◆ 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) {}

◆ ~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

◆ 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.

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

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

edm::AllowedLabelsDescriptionBase::AllowedLabelsDescriptionBase
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
Definition: AllowedLabelsDescriptionBase.cc:15
edm::AllowedLabelsDescriptionBase::isTracked
bool isTracked() const
Definition: AllowedLabelsDescriptionBase.h:21
edm::AllowedLabelsDescription::AllowedLabelsDescription
AllowedLabelsDescription(std::string const &label, bool isTracked)
Definition: AllowedLabelsDescription.h:25
T
long double T
Definition: Basic3DVectorLD.h:48
label
const char * label
Definition: PFTauDecayModeTools.cc:11
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27