Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Provenance
src
ParentageRegistry.cc
Go to the documentation of this file.
1
#include "
DataFormats/Provenance/interface/ParentageRegistry.h
"
2
3
namespace
edm {
4
ParentageRegistry*
5
ParentageRegistry::instance
() {
6
static
ParentageRegistry
s_reg;
7
return
&s_reg;
8
}
9
10
bool
11
ParentageRegistry::getMapped
(
key_type
const
&
k
,
value_type
&
result
)
const
12
{
13
auto
it =
m_map
.find(k);
14
bool
found
= it !=
m_map
.end();
15
if
(found) {
16
result = it->second;
17
}
18
return
found
;
19
}
20
21
ParentageRegistry::value_type
const
*
22
ParentageRegistry::getMapped
(
key_type
const
&
k
)
const
23
{
24
auto
it =
m_map
.find(k);
25
bool
found
= it !=
m_map
.end();
26
return
found? &(it->second) : static_cast<value_type const*>(
nullptr
);
27
}
28
29
bool
30
ParentageRegistry::insertMapped
(
value_type
const
&
v
) {
31
return
m_map
.insert(std::make_pair(v.
id
(),
v
)).second;
32
}
33
34
void
35
ParentageRegistry::clear
() {
36
m_map
.clear();
37
}
38
}
edm::ParentageRegistry::clear
void clear()
Not thread safe.
Definition:
ParentageRegistry.cc:35
edm::Parentage
Definition:
Parentage.h:25
edm::Hash
Definition:
Hash.h:42
edm::Parentage::id
ParentageID id() const
Definition:
Parentage.cc:19
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
ParentageRegistry.h
edm::ParentageRegistry
Definition:
ParentageRegistry.h:14
edm::ParentageRegistry::getMapped
bool getMapped(key_type const &k, value_type &result) const
Definition:
ParentageRegistry.cc:11
query.result
tuple result
Definition:
query.py:137
edm::ParentageRegistry::m_map
tbb::concurrent_unordered_map< key_type, value_type, key_hash > m_map
Definition:
ParentageRegistry.h:51
relval_steps.k
list k
Definition:
relval_steps.py:1709
edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition:
ParentageRegistry.cc:5
newFWLiteAna.found
found
Definition:
newFWLiteAna.py:118
edm::ParentageRegistry::insertMapped
bool insertMapped(value_type const &v)
Definition:
ParentageRegistry.cc:30
Generated for CMSSW Reference Manual by
1.8.5