#include <ParentageRegistry.h>
Classes | |
struct | key_hash |
Public Types | |
typedef edm::ParentageID | key_type |
typedef edm::Parentage | value_type |
Public Member Functions | |
void | clear () |
Not thread safe. More... | |
bool | getMapped (key_type const &k, value_type &result) const |
value_type const * | getMapped (key_type const &k) const |
bool | insertMapped (value_type const &v) |
bool | insertMapped (value_type &&v) |
Static Public Member Functions | |
static ParentageRegistry * | instance () |
Private Attributes | |
tbb::concurrent_unordered_map< key_type, value_type, key_hash > | m_map |
Definition at line 14 of file ParentageRegistry.h.
Definition at line 16 of file ParentageRegistry.h.
Definition at line 17 of file ParentageRegistry.h.
void edm::ParentageRegistry::clear | ( | void | ) |
Not thread safe.
Definition at line 40 of file ParentageRegistry.cc.
References m_map.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), Vispa.Views.PropertyView.PropertyView::updateContent(), and edm::EventProcessor::~EventProcessor().
bool edm::ParentageRegistry::getMapped | ( | key_type const & | k, |
value_type & | result | ||
) | const |
Retrieve the value_type object with the given key. If we return 'true', then 'result' carries the value_type object. If we return 'false, no matching key was found, and the value of 'result' is undefined.
Definition at line 11 of file ParentageRegistry.cc.
References runEdmFileComparison::found, and m_map.
Referenced by ProvenanceDumper::addAncestors(), edm::PoolOutputModule::fillDependencyGraph(), edm::ProductProvenance::parentage(), edm::StreamSerializer::serializeEvent(), ProvenanceDumper::work_(), and edm::RootOutputFile::writeParentageRegistry().
ParentageRegistry::value_type const * edm::ParentageRegistry::getMapped | ( | key_type const & | k | ) | const |
Retrieve a pointer to the value_type object with the given key. If there is no object associated with the given key 0 is returned.
Definition at line 22 of file ParentageRegistry.cc.
References runEdmFileComparison::found, and m_map.
bool edm::ParentageRegistry::insertMapped | ( | value_type const & | v | ) |
Insert the given value_type object into the registry. If there was already a value_type object with the same key, we don't change it. This should be OK, since it should have the same contents if the key is the same. Return 'true' if we really added the new value_type object, and 'false' if the value_type object was already present.
Definition at line 30 of file ParentageRegistry.cc.
References edm::Parentage::id(), m_map, and findQualityFiles::v.
Referenced by edm::Event::commit_aux(), edm::EventProcessor::init(), edm::ProductProvenance::ProductProvenance(), edm::RootFile::readEntryDescriptionTree(), edm::RootFile::readParentageTree(), edm::SwitchBaseProductResolver::SwitchBaseProductResolver(), and ProvenanceDumper::work_().
bool edm::ParentageRegistry::insertMapped | ( | value_type && | v | ) |
Definition at line 35 of file ParentageRegistry.cc.
References m_map, eostools::move(), edm::second(), and findQualityFiles::v.
|
static |
Definition at line 5 of file ParentageRegistry.cc.
Referenced by ProvenanceDumper::addAncestors(), edm::Event::commit_aux(), edm::PoolOutputModule::fillDependencyGraph(), edm::EventProcessor::init(), edm::ProductProvenance::parentage(), edm::ProductProvenance::ProductProvenance(), edm::RootFile::readEntryDescriptionTree(), edm::RootFile::readParentageTree(), edm::StreamSerializer::serializeEvent(), edm::SwitchBaseProductResolver::SwitchBaseProductResolver(), ProvenanceDumper::work_(), edm::RootOutputFile::writeParentageRegistry(), and edm::EventProcessor::~EventProcessor().
|
private |
Definition at line 52 of file ParentageRegistry.h.
Referenced by clear(), getMapped(), and insertMapped().