CMS 3D CMS Logo

ORGroupDescription.h
Go to the documentation of this file.
1 #ifndef FWCore_ParameterSet_ORGroupDescription_h
2 #define FWCore_ParameterSet_ORGroupDescription_h
3 
5 
7 
8 #include <memory>
9 #include <iosfwd>
10 #include <set>
11 #include <string>
12 
13 namespace edm {
14 
15  class ParameterSet;
16  class DocFormatHelper;
17 
19  public:
20  ORGroupDescription(ParameterDescriptionNode const& node_left, ParameterDescriptionNode const& node_right);
21 
22  ORGroupDescription(std::unique_ptr<ParameterDescriptionNode> node_left, ParameterDescriptionNode const& node_right);
23 
24  ORGroupDescription(ParameterDescriptionNode const& node_left, std::unique_ptr<ParameterDescriptionNode> node_right);
25 
26  ORGroupDescription(std::unique_ptr<ParameterDescriptionNode> node_left,
27  std::unique_ptr<ParameterDescriptionNode> node_right);
28 
29  ParameterDescriptionNode* clone() const override { return new ORGroupDescription(*this); }
30 
31  private:
32  void checkAndGetLabelsAndTypes_(std::set<std::string>& usedLabels,
33  std::set<ParameterTypes>& parameterTypes,
34  std::set<ParameterTypes>& wildcardTypes) const override;
35 
36  void validate_(ParameterSet& pset, std::set<std::string>& validatedLabels, bool optional) const override;
37 
38  void writeCfi_(
39  std::ostream& os, bool optional, bool& startWithComma, int indentation, bool& wroteSomething) const override;
40 
41  void print_(std::ostream& os, bool optional, bool writeToCfi, DocFormatHelper& dfh) const override;
42 
43  bool hasNestedContent_() const override { return true; }
44 
45  void printNestedContent_(std::ostream& os, bool optional, DocFormatHelper& dfh) const override;
46 
47  bool exists_(ParameterSet const& pset) const override;
48 
49  bool partiallyExists_(ParameterSet const& pset) const override;
50 
51  int howManyXORSubNodesExist_(ParameterSet const& pset) const override;
52 
53  void throwIfDuplicateLabels(std::set<std::string> const& labelsLeft,
54  std::set<std::string> const& labelsRight) const;
55 
56  void throwIfDuplicateTypes(std::set<ParameterTypes> const& types1, std::set<ParameterTypes> const& types2) const;
57 
60  };
61 } // namespace edm
62 #endif
edm::ORGroupDescription::writeCfi_
void writeCfi_(std::ostream &os, bool optional, bool &startWithComma, int indentation, bool &wroteSomething) const override
Definition: ORGroupDescription.cc:74
edm::ORGroupDescription::partiallyExists_
bool partiallyExists_(ParameterSet const &pset) const override
Definition: ORGroupDescription.cc:181
edm::ORGroupDescription::ORGroupDescription
ORGroupDescription(ParameterDescriptionNode const &node_left, ParameterDescriptionNode const &node_right)
Definition: ORGroupDescription.cc:13
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ORGroupDescription::throwIfDuplicateTypes
void throwIfDuplicateTypes(std::set< ParameterTypes > const &types1, std::set< ParameterTypes > const &types2) const
Definition: ORGroupDescription.cc:205
edm::ORGroupDescription::clone
ParameterDescriptionNode * clone() const override
Definition: ORGroupDescription.h:29
Types.optional
optional
Definition: Types.py:198
edm::DocFormatHelper
Definition: DocFormatHelper.h:15
edm::ORGroupDescription::hasNestedContent_
bool hasNestedContent_() const override
Definition: ORGroupDescription.h:43
edm::ORGroupDescription
Definition: ORGroupDescription.h:18
edm::ORGroupDescription::node_right_
edm::value_ptr< ParameterDescriptionNode > node_right_
Definition: ORGroupDescription.h:59
ParameterDescriptionNode.h
value_ptr.h
edm::ORGroupDescription::howManyXORSubNodesExist_
int howManyXORSubNodesExist_(ParameterSet const &pset) const override
Definition: ORGroupDescription.cc:183
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::ORGroupDescription::exists_
bool exists_(ParameterSet const &pset) const override
Definition: ORGroupDescription.cc:177
edm::value_ptr
Definition: value_ptr.h:63
edm::ORGroupDescription::node_left_
edm::value_ptr< ParameterDescriptionNode > node_left_
Definition: ORGroupDescription.h:58
edm::ORGroupDescription::printNestedContent_
void printNestedContent_(std::ostream &os, bool optional, DocFormatHelper &dfh) const override
Definition: ORGroupDescription.cc:124
edm::ORGroupDescription::throwIfDuplicateLabels
void throwIfDuplicateLabels(std::set< std::string > const &labelsLeft, std::set< std::string > const &labelsRight) const
Definition: ORGroupDescription.cc:185
printContent_cfi.indentation
indentation
Definition: printContent_cfi.py:10
edm::ORGroupDescription::validate_
void validate_(ParameterSet &pset, std::set< std::string > &validatedLabels, bool optional) const override
Definition: ORGroupDescription.cc:56
edm::ParameterDescriptionNode
Definition: ParameterDescriptionNode.h:82
edm::ORGroupDescription::print_
void print_(std::ostream &os, bool optional, bool writeToCfi, DocFormatHelper &dfh) const override
Definition: ORGroupDescription.cc:79
edm::ORGroupDescription::checkAndGetLabelsAndTypes_
void checkAndGetLabelsAndTypes_(std::set< std::string > &usedLabels, std::set< ParameterTypes > &parameterTypes, std::set< ParameterTypes > &wildcardTypes) const override
Definition: ORGroupDescription.cc:29
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27