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 &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 &startWithComma, int indentation, bool &wroteSomething) const =0
 

Protected Attributes

std::string comment_
 

Detailed Description

Definition at line 80 of file ParameterDescriptionNode.h.

Constructor & Destructor Documentation

edm::ParameterDescriptionNode::ParameterDescriptionNode ( )
inline

Definition at line 82 of file ParameterDescriptionNode.h.

82 {}
edm::ParameterDescriptionNode::ParameterDescriptionNode ( Comment const &  iComment)
inlineexplicit

Definition at line 84 of file ParameterDescriptionNode.h.

References clone().

84 : comment_(iComment.comment()) {}
edm::ParameterDescriptionNode::~ParameterDescriptionNode ( )
virtual

Definition at line 99 of file ParameterDescriptionNode.cc.

99 {}

Member Function Documentation

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

Definition at line 205 of file ParameterDescriptionNode.h.

References gen::n, and muonDTDigis_cfi::pset.

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

207  {
208  checkAndGetLabelsAndTypes_(usedLabels, parameterTypes, wildcardTypes);
209  }
virtual void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const =0
virtual void edm::ParameterDescriptionNode::checkAndGetLabelsAndTypes_ ( std::set< std::string > &  usedLabels,
std::set< ParameterTypes > &  parameterTypes,
std::set< ParameterTypes > &  wildcardTypes 
) const
protectedpure virtual
virtual ParameterDescriptionNode* edm::ParameterDescriptionNode::clone ( ) const
pure virtual
std::string const& edm::ParameterDescriptionNode::comment ( ) const
inline
bool edm::ParameterDescriptionNode::exists ( ParameterSet const &  pset) const
inline
virtual bool edm::ParameterDescriptionNode::exists_ ( ParameterSet const &  pset) const
protectedpure virtual
bool edm::ParameterDescriptionNode::hasNestedContent ( ) const
inline
virtual bool edm::ParameterDescriptionNode::hasNestedContent_ ( ) const
inlineprotectedvirtual
int edm::ParameterDescriptionNode::howManyXORSubNodesExist ( ParameterSet const &  pset) const
inline

Definition at line 151 of file ParameterDescriptionNode.h.

151 { return howManyXORSubNodesExist_(pset); }
virtual int howManyXORSubNodesExist_(ParameterSet const &pset) const =0
virtual int edm::ParameterDescriptionNode::howManyXORSubNodesExist_ ( ParameterSet const &  pset) const
protectedpure virtual
bool edm::ParameterDescriptionNode::partiallyExists ( ParameterSet const &  pset) const
inline

Definition at line 138 of file ParameterDescriptionNode.h.

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

138 { return partiallyExists_(pset); }
virtual bool partiallyExists_(ParameterSet const &pset) const =0
virtual bool edm::ParameterDescriptionNode::partiallyExists_ ( ParameterSet const &  pset) const
protectedpure virtual
void edm::ParameterDescriptionNode::print ( std::ostream &  os,
bool  optional,
bool  writeToCfi,
DocFormatHelper dfh 
) const

Definition at line 105 of file ParameterDescriptionNode.cc.

References edm::writeParameterValue::hasNestedContent(), edm::DocFormatHelper::incrementCounter(), and edm::hash_detail::print_().

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

105  {
106  if (hasNestedContent()) {
107  dfh.incrementCounter();
108  }
109  print_(os, optional, writeToCfi, dfh);
110  }
virtual void print_(std::ostream &, bool, bool, DocFormatHelper &) const
virtual void edm::ParameterDescriptionNode::print_ ( std::ostream &  ,
bool  ,
bool  ,
DocFormatHelper  
) const
inlineprotectedvirtual
void edm::ParameterDescriptionNode::printNestedContent ( std::ostream &  os,
bool  optional,
DocFormatHelper dfh 
) const

Definition at line 112 of file ParameterDescriptionNode.cc.

References edm::writeParameterValue::hasNestedContent(), and edm::DocFormatHelper::incrementCounter().

112  {
113  if (hasNestedContent()) {
114  dfh.incrementCounter();
115  printNestedContent_(os, optional, dfh);
116  }
117  }
virtual void printNestedContent_(std::ostream &, bool, DocFormatHelper &) const
virtual void edm::ParameterDescriptionNode::printNestedContent_ ( std::ostream &  ,
bool  ,
DocFormatHelper  
) const
inlineprotectedvirtual
void edm::ParameterDescriptionNode::printSpaces ( std::ostream &  os,
int  n 
)
static
void edm::ParameterDescriptionNode::setComment ( std::string const &  value)

Definition at line 101 of file ParameterDescriptionNode.cc.

References edm::Comment::comment_, and relativeConstraints::value.

Referenced by edm::EventSkipperByID::fillDescription(), reco::helper::JetIDHelper::fillDescription(), edm::RunHelperBase::fillDescription(), pat::helper::KinResolutionsLoader::fillDescription(), edm::ProducerSourceBase::fillDescription(), L1TStage2RatioClient::fillDescriptions(), MeasurementTrackerEventProducer::fillDescriptions(), CTPPSModifiedOpticalFunctionsESSource::fillDescriptions(), ECFAdder::fillDescriptions(), L1TStage2RegionalMuonCandComp::fillDescriptions(), L1TStage2MuonComp::fillDescriptions(), CTPPSOpticalFunctionsESSource::fillDescriptions(), L2TauJetsMerger::fillDescriptions(), PPSFilteredProtonProducer::fillDescriptions(), L1THLTTauMatching::fillDescriptions(), L1HLTTauMatching::fillDescriptions(), HLTDiJetEtaTopologyFilter< T >::fillDescriptions(), PixelFitterByHelixProjectionsProducer::fillDescriptions(), edm::AsciiOutputModule::fillDescriptions(), CTPPSLHCInfoRandomXangleESSource::fillDescriptions(), PFJetsTauOverlapRemoval::fillDescriptions(), TauJetSelectorForHLTTrackSeeding::fillDescriptions(), edm::service::ResourceEnforcer::fillDescriptions(), PFTauL1TJetsMatching::fillDescriptions(), BeamDivergenceVtxGenerator::fillDescriptions(), L2TauPixelIsoTagProducer::fillDescriptions(), CTPPSLocalTrackLiteProducer::fillDescriptions(), L1TObjectsTiming::fillDescriptions(), CaloTowerCreatorForTauHLT::fillDescriptions(), CTPPSProtonProducer::fillDescriptions(), MuonFSRProducer::fillDescriptions(), PPSTimingCalibrationESSource::fillDescriptions(), CTPPSProtonReconstructionEfficiencyEstimatorData::fillDescriptions(), TriggerResultsFilterFromDB::fillDescriptions(), FedRawDataInputSource::fillDescriptions(), TriggerResultsFilter::fillDescriptions(), PixelVertexCollectionTrimmer::fillDescriptions(), HLTL1MuonNoL2Selector::fillDescriptions(), edm::EventSetupRecordDataGetter::fillDescriptions(), edm::service::Timing::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), L1TJetsMatching< T >::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), ExternalLHEProducer::fillDescriptions(), pat::PATMuonProducer::fillDescriptions(), TriggerSummaryProducerAOD::fillDescriptions(), TrackingRegionsFromSuperClustersProducer::fillDescriptions(), L1TGlobalPrescaler::fillDescriptions(), FastTimerService::fillDescriptions(), edm::EventContentAnalyzer::fillDescriptions(), GenWeightsTableProducer::fillDescriptions(), CTPPSProtonProducer::AssociationCuts::getDefaultParameters(), and BaseMVAValueMapProducer< T >::getDescription().

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

Definition at line 100 of file ParameterDescriptionNode.h.

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

100  {
101  validate_(pset, validatedLabels, optional);
102  }
virtual void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const =0
virtual void edm::ParameterDescriptionNode::validate_ ( ParameterSet pset,
std::set< std::string > &  validatedLabels,
bool  optional 
) const
protectedpure virtual
void edm::ParameterDescriptionNode::writeCfi ( std::ostream &  os,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const
inline

Definition at line 114 of file ParameterDescriptionNode.h.

References edm::print().

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

114  {
115  writeCfi_(os, startWithComma, indentation, wroteSomething);
116  }
virtual void writeCfi_(std::ostream &os, bool &startWithComma, int indentation, bool &wroteSomething) const =0
virtual void edm::ParameterDescriptionNode::writeCfi_ ( std::ostream &  os,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const
protectedpure virtual

Member Data Documentation

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

Definition at line 234 of file ParameterDescriptionNode.h.