CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual ParameterDescriptionNodeclone () const
 
- Public Member Functions inherited from edm::AllowedLabelsDescriptionBase
bool isTracked () const
 
ParameterTypes type () const
 
virtual ~AllowedLabelsDescriptionBase ()
 
- 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 ()
 
int howManyXORSubNodesExist (ParameterSet const &pset) const
 
bool partiallyExists (ParameterSet const &pset) const
 
void print (std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh)
 
void printNestedContent (std::ostream &os, bool optional, DocFormatHelper &dfh)
 
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 &startWithComma, int indentation, bool &wroteSomething) const
 
virtual ~ParameterDescriptionNode ()
 

Private Member Functions

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

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)
 
- Protected Attributes inherited from edm::ParameterDescriptionNode
std::string comment_
 

Detailed Description

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

Definition at line 22 of file AllowedLabelsDescription.h.

Constructor & Destructor Documentation

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  :
27  AllowedLabelsDescriptionBase(label, ParameterTypeToEnum::toEnum<T>(), isTracked)
28  {
29  }
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)
template<class T >
edm::AllowedLabelsDescription< T >::AllowedLabelsDescription ( char const *  label,
bool  isTracked 
)
inline

Definition at line 31 of file AllowedLabelsDescription.h.

32  :
33  AllowedLabelsDescriptionBase(label, ParameterTypeToEnum::toEnum<T>(), isTracked)
34  {
35  }
AllowedLabelsDescriptionBase(std::string const &label, ParameterTypes iType, bool isTracked)

Member Function Documentation

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

Implements edm::ParameterDescriptionNode.

Definition at line 37 of file AllowedLabelsDescription.h.

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

37  {
38  return new AllowedLabelsDescription(*this);
39  }
AllowedLabelsDescription(std::string const &label, bool isTracked)
template<class T >
virtual void edm::AllowedLabelsDescription< T >::validateAllowedLabel_ ( std::string const &  allowedLabel,
ParameterSet pset,
std::set< std::string > &  validatedLabels 
) const
inlineprivatevirtual

Implements edm::AllowedLabelsDescriptionBase.

Definition at line 43 of file AllowedLabelsDescription.h.

References edm::ParameterSet::existsAs(), and edm::AllowedLabelsDescriptionBase::isTracked().

45  {
46  if (pset.existsAs<T>(allowedLabel, isTracked())) {
47  validatedLabels.insert(allowedLabel);
48  }
49  }
long double T