Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
ParameterSet
interface
ParameterSetEntry.h
Go to the documentation of this file.
1
#ifndef ParameterSet_ParameterSetEntry_h
2
#define ParameterSet_ParameterSetEntry_h
3
10
#include "
FWCore/Utilities/interface/value_ptr.h
"
11
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
12
13
namespace
edm {
14
15
// forward declaration
16
class
ParameterSet
;
17
18
class
ParameterSetEntry
19
{
20
public
:
21
// default ctor for serialization
22
ParameterSetEntry
();
23
ParameterSetEntry
(
ParameterSet
const
&
pset
,
bool
isTracked
);
24
ParameterSetEntry
(
ParameterSetID
const
&
id
,
bool
isTracked);
25
explicit
ParameterSetEntry
(std::string
const
& rep);
26
27
~ParameterSetEntry
();
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
50
mutable
value_ptr<ParameterSet>
thePSet_
;
51
52
// mutable so save() can serialize it as late as possible
53
mutable
ParameterSetID
theID_
;
54
};
55
56
}
57
58
#endif
59
edm::ParameterSetEntry::~ParameterSetEntry
~ParameterSetEntry()
Definition:
ParameterSetEntry.cc:45
ParameterSet
Definition:
Functions.h:16
edm::Hash< ParameterSetType >
edm::ParameterSetEntry::thePSet_
value_ptr< ParameterSet > thePSet_
Definition:
ParameterSetEntry.h:50
edm::ParameterSetEntry::isTracked_
bool isTracked_
Definition:
ParameterSetEntry.h:47
value_ptr.h
edm::ParameterSetEntry::pset
ParameterSet const & pset() const
Definition:
ParameterSetEntry.cc:67
edm::ParameterSetEntry::updateID
void updateID() const
Definition:
ParameterSetEntry.cc:83
edm::ParameterSetEntry::isTracked
bool isTracked() const
Definition:
ParameterSetEntry.h:32
query.result
tuple result
Definition:
query.py:137
edm::ParameterSetEntry::ParameterSetEntry
ParameterSetEntry()
Definition:
ParameterSetEntry.cc:9
ParameterSetID.h
edm::ParameterSetEntry
Definition:
ParameterSetEntry.h:18
edm::ParameterSetEntry::toString
std::string toString() const
Definition:
ParameterSetEntry.cc:61
edm::ParameterSetEntry::id
ParameterSetID id() const
Definition:
ParameterSetEntry.h:34
edm::ParameterSetEntry::operator<<
friend std::ostream & operator<<(std::ostream &os, ParameterSetEntry const &psetEntry)
Definition:
ParameterSetEntry.cc:88
edm::ParameterSetEntry::theID_
ParameterSetID theID_
Definition:
ParameterSetEntry.h:53
edm::ParameterSet
Definition:
ParameterSet.h:31
edm::value_ptr
Definition:
value_ptr.h:62
Generated for CMSSW Reference Manual by
1.8.5