-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #681 from wmtan/TwoFrameworkImprovementsForMultith…
…reading Make history registry non-singleton and also fix read calls to not use p...
- Loading branch information
Showing
100 changed files
with
996 additions
and
967 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
// | ||
|
||
// system include files | ||
#include <cassert> | ||
#include <iostream> | ||
|
||
// user include files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
DataFormats/Provenance/interface/FullHistoryToReducedHistoryMap.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
#ifndef DataFormats_Provenance_ProcessHistoryRegistry_h | ||
#define DataFormats_Provenance_ProcessHistoryRegistry_h | ||
|
||
#include "FWCore/Utilities/interface/ThreadSafeRegistry.h" | ||
/** \class edm::ProcessHistoryRegistry | ||
\author Bill Tanenbaum, modified 23 August, 2013 | ||
*/ | ||
|
||
#include <map> | ||
#include <vector> | ||
|
||
#include "DataFormats/Provenance/interface/ProcessHistory.h" | ||
#include "DataFormats/Provenance/interface/ProcessHistoryID.h" | ||
#include "DataFormats/Provenance/interface/FullHistoryToReducedHistoryMap.h" | ||
|
||
namespace edm { | ||
typedef edm::detail::ThreadSafeRegistry<edm::ProcessHistoryID,edm::ProcessHistory,edm::FullHistoryToReducedHistoryMap> ProcessHistoryRegistry; | ||
typedef ProcessHistoryRegistry::collection_type ProcessHistoryMap; | ||
typedef ProcessHistoryRegistry::vector_type ProcessHistoryVector; | ||
typedef std::map<ProcessHistoryID, ProcessHistory> ProcessHistoryMap; | ||
typedef std::vector<ProcessHistory> ProcessHistoryVector; | ||
|
||
bool registerProcessHistory(ProcessHistory const& processHistory); | ||
} | ||
class ProcessHistoryRegistry { | ||
public: | ||
typedef ProcessHistory value_type; | ||
typedef ProcessHistoryMap collection_type; | ||
typedef ProcessHistoryVector vector_type; | ||
|
||
ProcessHistoryRegistry(); | ||
#ifndef __GCCXML__ | ||
ProcessHistoryRegistry(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving | ||
ProcessHistoryRegistry& operator=(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving | ||
#endif | ||
bool registerProcessHistory(ProcessHistory const& processHistory); | ||
bool getMapped(ProcessHistoryID const& key, ProcessHistory& value) const; | ||
ProcessHistory const* getMapped(ProcessHistoryID const& key) const; | ||
ProcessHistoryID const& reducedProcessHistoryID(ProcessHistoryID const& fullID) const; | ||
ProcessHistoryMap::const_iterator begin() const { | ||
return data_.begin(); | ||
} | ||
ProcessHistoryMap::const_iterator end() const { | ||
return data_.end(); | ||
} | ||
private: | ||
ProcessHistoryMap data_; | ||
std::map<ProcessHistoryID, ProcessHistoryID> extra_; | ||
}; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
DataFormats/Provenance/src/FullHistoryToReducedHistoryMap.cc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.