CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
edm::ParameterDescriptionNode Class Referenceabstract

#include <ParameterDescriptionNode.h>

Inheritance diagram for edm::ParameterDescriptionNode:
edm::AllowedLabelsDescriptionBase edm::ANDGroupDescription edm::EmptyGroupDescription edm::IfExistsDescription edm::ORGroupDescription edm::ParameterDescriptionBase edm::ParameterSwitchBase edm::ParameterWildcardBase edm::PluginDescription< T > edm::XORGroupDescription

Public Member Functions

void checkAndGetLabelsAndTypes (std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const
 
virtual ParameterDescriptionNodeclone () const =0
 
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 (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 ()
 

Static Public Member Functions

static void printSpaces (std::ostream &os, int n)
 

Protected Member Functions

virtual void checkAndGetLabelsAndTypes_ (std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const =0
 
virtual bool exists_ (ParameterSet const &pset) const =0
 
virtual bool hasNestedContent_ () const
 
virtual int howManyXORSubNodesExist_ (ParameterSet const &pset) const =0
 
virtual bool partiallyExists_ (ParameterSet const &pset) const =0
 
virtual void print_ (std::ostream &, bool, bool, DocFormatHelper &) const
 
virtual void printNestedContent_ (std::ostream &, bool, DocFormatHelper &) const
 
virtual void validate_ (ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const =0
 
virtual void writeCfi_ (std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const =0
 

Protected Attributes

std::string comment_
 

Detailed Description

Definition at line 84 of file ParameterDescriptionNode.h.

Constructor & Destructor Documentation

◆ ParameterDescriptionNode() [1/2]

edm::ParameterDescriptionNode::ParameterDescriptionNode ( )
inline

Definition at line 86 of file ParameterDescriptionNode.h.

86 {}

◆ ParameterDescriptionNode() [2/2]

edm::ParameterDescriptionNode::ParameterDescriptionNode ( Comment const &  iComment)
inlineexplicit

Definition at line 88 of file ParameterDescriptionNode.h.

88 : comment_(iComment.comment()) {}

◆ ~ParameterDescriptionNode()

edm::ParameterDescriptionNode::~ParameterDescriptionNode ( )
virtual

Definition at line 107 of file ParameterDescriptionNode.cc.

107 {}

Member Function Documentation

◆ checkAndGetLabelsAndTypes()

void edm::ParameterDescriptionNode::checkAndGetLabelsAndTypes ( std::set< std::string > &  usedLabels,
std::set< ParameterTypes > &  parameterTypes,
std::set< ParameterTypes > &  wildcardTypes 
) const
inline

Definition at line 209 of file ParameterDescriptionNode.h.

References checkAndGetLabelsAndTypes_().

Referenced by edm::ParameterSetDescription::addNode(), and edm::AllowedLabelsDescriptionBase::checkAndGetLabelsAndTypes_().

211  {
212  checkAndGetLabelsAndTypes_(usedLabels, parameterTypes, wildcardTypes);
213  }
virtual void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const =0

◆ checkAndGetLabelsAndTypes_()

virtual void edm::ParameterDescriptionNode::checkAndGetLabelsAndTypes_ ( std::set< std::string > &  usedLabels,
std::set< ParameterTypes > &  parameterTypes,
std::set< ParameterTypes > &  wildcardTypes 
) const
protectedpure virtual

◆ clone()

virtual ParameterDescriptionNode* edm::ParameterDescriptionNode::clone ( ) const
pure virtual

◆ comment()

std::string const& edm::ParameterDescriptionNode::comment ( ) const
inline

◆ exists()

bool edm::ParameterDescriptionNode::exists ( ParameterSet const &  pset) const
inline

◆ exists_()

virtual bool edm::ParameterDescriptionNode::exists_ ( ParameterSet const &  pset) const
protectedpure virtual

◆ hasNestedContent()

bool edm::ParameterDescriptionNode::hasNestedContent ( ) const
inline

◆ hasNestedContent_()

virtual bool edm::ParameterDescriptionNode::hasNestedContent_ ( ) const
inlineprotectedvirtual

◆ howManyXORSubNodesExist()

int edm::ParameterDescriptionNode::howManyXORSubNodesExist ( ParameterSet const &  pset) const
inline

Definition at line 155 of file ParameterDescriptionNode.h.

References howManyXORSubNodesExist_(), and muonDTDigis_cfi::pset.

155 { return howManyXORSubNodesExist_(pset); }
virtual int howManyXORSubNodesExist_(ParameterSet const &pset) const =0

◆ howManyXORSubNodesExist_()

virtual int edm::ParameterDescriptionNode::howManyXORSubNodesExist_ ( ParameterSet const &  pset) const
protectedpure virtual

◆ partiallyExists()

bool edm::ParameterDescriptionNode::partiallyExists ( ParameterSet const &  pset) const
inline

Definition at line 142 of file ParameterDescriptionNode.h.

References partiallyExists_(), and muonDTDigis_cfi::pset.

Referenced by edm::ANDGroupDescription::validate_().

142 { return partiallyExists_(pset); }
virtual bool partiallyExists_(ParameterSet const &pset) const =0

◆ partiallyExists_()

virtual bool edm::ParameterDescriptionNode::partiallyExists_ ( ParameterSet const &  pset) const
protectedpure virtual

◆ print()

void edm::ParameterDescriptionNode::print ( std::ostream &  os,
bool  optional,
bool  writeToCfi,
DocFormatHelper dfh 
) const

Definition at line 113 of file ParameterDescriptionNode.cc.

References hasNestedContent(), edm::DocFormatHelper::incrementCounter(), Types::optional, and print_().

Referenced by edm::AllowedLabelsDescriptionBase::printNestedContentBase_().

113  {
114  if (hasNestedContent()) {
115  dfh.incrementCounter();
116  }
117  print_(os, optional, writeToCfi, dfh);
118  }
optional
Definition: Types.py:239
virtual void print_(std::ostream &, bool, bool, DocFormatHelper &) const

◆ print_()

virtual void edm::ParameterDescriptionNode::print_ ( std::ostream &  ,
bool  ,
bool  ,
DocFormatHelper  
) const
inlineprotectedvirtual

◆ printNestedContent()

void edm::ParameterDescriptionNode::printNestedContent ( std::ostream &  os,
bool  optional,
DocFormatHelper dfh 
) const

Definition at line 120 of file ParameterDescriptionNode.cc.

References hasNestedContent(), edm::DocFormatHelper::incrementCounter(), Types::optional, and printNestedContent_().

120  {
121  if (hasNestedContent()) {
122  dfh.incrementCounter();
123  printNestedContent_(os, optional, dfh);
124  }
125  }
optional
Definition: Types.py:239
virtual void printNestedContent_(std::ostream &, bool, DocFormatHelper &) const

◆ printNestedContent_()

virtual void edm::ParameterDescriptionNode::printNestedContent_ ( std::ostream &  ,
bool  ,
DocFormatHelper  
) const
inlineprotectedvirtual

◆ printSpaces()

void edm::ParameterDescriptionNode::printSpaces ( std::ostream &  os,
int  n 
)
static

◆ setComment() [1/2]

void edm::ParameterDescriptionNode::setComment ( std::string const &  value)

Definition at line 109 of file ParameterDescriptionNode.cc.

References comment_, and relativeConstraints::value.

Referenced by ConfigToolBase.ConfigToolBase::apply(), hgcal::HGCalFrameGenerator::description(), reco::helper::JetIDHelper::fillDescription(), pat::helper::KinResolutionsLoader::fillDescription(), GEMSegmentBuilder::fillDescription(), ECFAdder::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), CTPPSOpticalFunctionsESSource::fillDescriptions(), PPSFilteredProtonProducer::fillDescriptions(), OnlineBeamSpotESProducer::fillDescriptions(), edmtest::ProducerWithPSetDesc::fillDescriptions(), CTPPSDiamondLocalTrackFitter::fillDescriptions(), CaloTowerFromL1TSeededCreatorForTauHLT::fillDescriptions(), CaloTowerFromL1TCreatorForTauHLT::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), PFProducer::fillDescriptions(), TotemVFATRawToDigi::fillDescriptions(), CTPPSCompositeESSource::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), L1TrackSelectionProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), pat::PATMuonProducer::fillDescriptions(), TotemTimingLocalTrackFitter< T >::fillDescriptionsShared(), VertexTimeAlgorithmFromTracksPID::fillPSetDescription(), ticl::PatternRecognitionbyCLUE3D< TILES >::fillPSetDescription(), ticl::PatternRecognitionbyCA< TILES >::fillPSetDescription(), ticl::PatternRecognitionbyFastJet< TILES >::fillPSetDescription(), and PFEGammaFilters::fillPSetDescription().

◆ setComment() [2/2]

void edm::ParameterDescriptionNode::setComment ( char const *  value)

◆ validate()

void edm::ParameterDescriptionNode::validate ( ParameterSet pset,
std::set< std::string > &  validatedLabels,
bool  optional 
) const
inline

Definition at line 104 of file ParameterDescriptionNode.h.

References Types::optional, muonDTDigis_cfi::pset, and validate_().

Referenced by edm::AllowedLabelsDescriptionBase::validate_().

104  {
105  validate_(pset, validatedLabels, optional);
106  }
optional
Definition: Types.py:239
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const =0

◆ validate_()

virtual void edm::ParameterDescriptionNode::validate_ ( ParameterSet pset,
std::set< std::string > &  validatedLabels,
bool  optional 
) const
protectedpure virtual

◆ writeCfi()

void edm::ParameterDescriptionNode::writeCfi ( std::ostream &  os,
bool  optional,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const
inline

Definition at line 118 of file ParameterDescriptionNode.h.

References printContent_cfi::indentation, Types::optional, and writeCfi_().

Referenced by edm::AllowedLabelsDescriptionBase::writeCfi_().

118  {
119  writeCfi_(os, optional, startWithComma, indentation, wroteSomething);
120  }
optional
Definition: Types.py:239
virtual void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const =0

◆ writeCfi_()

virtual void edm::ParameterDescriptionNode::writeCfi_ ( std::ostream &  os,
bool  optional,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const
protectedpure virtual

Member Data Documentation

◆ comment_

std::string edm::ParameterDescriptionNode::comment_
protected

Definition at line 239 of file ParameterDescriptionNode.h.

Referenced by comment(), and setComment().