CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

edm::ParameterDescriptionNode Class Reference

#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::XORGroupDescription

List of all members.

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 ()
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 ()

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_ ()
virtual int howManyXORSubNodesExist_ (ParameterSet const &pset) const =0
virtual bool partiallyExists_ (ParameterSet const &pset) const =0
virtual void print_ (std::ostream &, bool, bool, DocFormatHelper &)
virtual void printNestedContent_ (std::ostream &, bool, DocFormatHelper &)
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 69 of file ParameterDescriptionNode.h.


Constructor & Destructor Documentation

edm::ParameterDescriptionNode::~ParameterDescriptionNode ( ) [virtual]

Definition at line 89 of file ParameterDescriptionNode.cc.

                                                      {
  }

Member Function Documentation

void edm::ParameterDescriptionNode::checkAndGetLabelsAndTypes ( std::set< std::string > &  usedLabels,
std::set< ParameterTypes > &  parameterTypes,
std::set< ParameterTypes > &  wildcardTypes 
) const [inline]
virtual void edm::ParameterDescriptionNode::checkAndGetLabelsAndTypes_ ( std::set< std::string > &  usedLabels,
std::set< ParameterTypes > &  parameterTypes,
std::set< ParameterTypes > &  wildcardTypes 
) const [protected, pure 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 [protected, pure virtual]
bool edm::ParameterDescriptionNode::hasNestedContent ( ) [inline]
virtual bool edm::ParameterDescriptionNode::hasNestedContent_ ( ) [inline, protected, virtual]
int edm::ParameterDescriptionNode::howManyXORSubNodesExist ( ParameterSet const &  pset) const [inline]

Definition at line 154 of file ParameterDescriptionNode.h.

References howManyXORSubNodesExist_().

                                                                {
      return howManyXORSubNodesExist_(pset);
    }
virtual int edm::ParameterDescriptionNode::howManyXORSubNodesExist_ ( ParameterSet const &  pset) const [protected, pure virtual]
bool edm::ParameterDescriptionNode::partiallyExists ( ParameterSet const &  pset) const [inline]

Definition at line 139 of file ParameterDescriptionNode.h.

References partiallyExists_().

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

                                                         {
      return partiallyExists_(pset);
    }
virtual bool edm::ParameterDescriptionNode::partiallyExists_ ( ParameterSet const &  pset) const [protected, pure virtual]
void edm::ParameterDescriptionNode::print ( std::ostream &  os,
bool  optional,
bool  writeToCfi,
DocFormatHelper dfh 
)

Definition at line 103 of file ParameterDescriptionNode.cc.

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

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

                                                        {
    if (hasNestedContent()) {
      dfh.incrementCounter();
    }
    print_(os, optional, writeToCfi, dfh);
  }
virtual void edm::ParameterDescriptionNode::print_ ( std::ostream &  ,
bool  ,
bool  ,
DocFormatHelper  
) [inline, protected, virtual]
void edm::ParameterDescriptionNode::printNestedContent ( std::ostream &  os,
bool  optional,
DocFormatHelper dfh 
)

Definition at line 114 of file ParameterDescriptionNode.cc.

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

                                                                     {
    if (hasNestedContent()) {
      dfh.incrementCounter();
      printNestedContent_(os, optional, dfh);
    }
  }
virtual void edm::ParameterDescriptionNode::printNestedContent_ ( std::ostream &  ,
bool  ,
DocFormatHelper  
) [inline, protected, virtual]
void edm::ParameterDescriptionNode::printSpaces ( std::ostream &  os,
int  n 
) [static]
void edm::ParameterDescriptionNode::setComment ( char const *  value)

Definition at line 98 of file ParameterDescriptionNode.cc.

References comment_, and relativeConstraints::value.

                                                        {
    comment_ = value;
  }
void edm::ParameterDescriptionNode::setComment ( std::string const &  value)
void edm::ParameterDescriptionNode::validate ( ParameterSet pset,
std::set< std::string > &  validatedLabels,
bool  optional 
) const [inline]

Definition at line 87 of file ParameterDescriptionNode.h.

References validate_().

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

                                       {
      validate_(pset, validatedLabels, optional);
    }
virtual void edm::ParameterDescriptionNode::validate_ ( ParameterSet pset,
std::set< std::string > &  validatedLabels,
bool  optional 
) const [protected, pure virtual]
void edm::ParameterDescriptionNode::writeCfi ( std::ostream &  os,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const [inline]

Definition at line 103 of file ParameterDescriptionNode.h.

References writeCfi_().

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

                                              {
      writeCfi_(os, startWithComma, indentation, wroteSomething);
    }
virtual void edm::ParameterDescriptionNode::writeCfi_ ( std::ostream &  os,
bool &  startWithComma,
int  indentation,
bool &  wroteSomething 
) const [protected, pure virtual]

Member Data Documentation

std::string edm::ParameterDescriptionNode::comment_ [protected]

Definition at line 252 of file ParameterDescriptionNode.h.

Referenced by comment(), and setComment().