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 namespace cms {
13  class Digest;
14 }
15 
16 namespace edm {
17 
18  // forward declaration
19  class ParameterSet;
20 
22  {
23  public:
24  // default ctor for serialization
27  ParameterSetEntry(ParameterSetID const& id, bool isTracked);
28  explicit ParameterSetEntry(std::string const& rep);
29 
31 
32  std::string toString() const;
33  void toString(std::string& result) const;
34  void toDigest(cms::Digest &digest) const;
35 
36  bool isTracked() const {return isTracked_;}
37  void setIsTracked(bool v) { isTracked_ = v; }
38 
39  ParameterSetID id() const {return theID_;}
40 
43  ParameterSet const& pset() const;
44  ParameterSet& pset();
45 
46  void updateID() const;
47 
48  friend std::ostream & operator<<(std::ostream & os, ParameterSetEntry const& psetEntry);
49 
50  private:
51 
52  bool isTracked_;
53  // can be internally reconstituted from the ID, in an
54  // ostensibly const function
56 
57  // mutable so save() can serialize it as late as possible
59  };
60 
61 }
62 
63 #endif
64 
value_ptr< ParameterSet > thePSet_
ParameterSet const & pset() const
void toDigest(cms::Digest &digest) const
tuple result
Definition: query.py:137
std::string toString() const
ParameterSetID id() const
friend std::ostream & operator<<(std::ostream &os, ParameterSetEntry const &psetEntry)
mathSSE::Vec4< T > v