CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParameterSetEntry.h
Go to the documentation of this file.
1 #ifndef ParameterSet_ParameterSetEntry_h
2 #define ParameterSet_ParameterSetEntry_h
3 
12 
13 namespace edm {
14 
15  // forward declaration
16  class ParameterSet;
17 
19  {
20  public:
21  // default ctor for serialization
24  ParameterSetEntry(ParameterSetID const& id, bool isTracked);
25  explicit ParameterSetEntry(std::string const& rep);
26 
28 
29  std::string toString() const;
30  void toString(std::string& result) const;
31 
32  bool isTracked() const {return isTracked_;}
33 
34  ParameterSetID id() const {return theID_;}
35 
38  ParameterSet const& pset() const;
39  ParameterSet& pset();
40 
41  void updateID() const;
42 
43  friend std::ostream & operator<<(std::ostream & os, ParameterSetEntry const& psetEntry);
44 
45  private:
46 
47  bool isTracked_;
48  // can be internally reconstituted from the ID, in an
49  // ostensibly const function
51 
52  // mutable so save() can serialize it as late as possible
54  };
55 
56 }
57 
58 #endif
59 
value_ptr< ParameterSet > thePSet_
ParameterSet const & pset() const
tuple result
Definition: query.py:137
std::string toString() const
ParameterSetID id() const
friend std::ostream & operator<<(std::ostream &os, ParameterSetEntry const &psetEntry)