CMS 3D CMS Logo

ProcessHistoryRegistry.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_ProcessHistoryRegistry_h
2 #define DataFormats_Provenance_ProcessHistoryRegistry_h
3 
8 #include <map>
9 #include <vector>
10 
13 
14 namespace edm {
15  typedef std::map<ProcessHistoryID, ProcessHistory> ProcessHistoryMap;
16  typedef std::vector<ProcessHistory> ProcessHistoryVector;
17 
19  public:
23 
25  ProcessHistoryRegistry(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
26  ProcessHistoryRegistry& operator=(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
27  bool registerProcessHistory(ProcessHistory const& processHistory);
28  bool getMapped(ProcessHistoryID const& key, ProcessHistory& value) const;
29  ProcessHistory const* getMapped(ProcessHistoryID const& key) const;
30  ProcessHistoryID const& reducedProcessHistoryID(ProcessHistoryID const& fullID) const;
31  ProcessHistoryMap::const_iterator begin() const { return data_.begin(); }
32  ProcessHistoryMap::const_iterator end() const { return data_.end(); }
33 
34  private:
36  std::map<ProcessHistoryID, ProcessHistoryID> extra_;
37  };
38 } // namespace edm
39 #endif
ProcessHistoryID.h
edm::ProcessHistoryRegistry::registerProcessHistory
bool registerProcessHistory(ProcessHistory const &processHistory)
Definition: ProcessHistoryRegistry.cc:11
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProcessHistoryMap
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
Definition: ProcessHistoryRegistry.h:15
ProcessHistory.h
edm::ProcessHistoryRegistry::extra_
std::map< ProcessHistoryID, ProcessHistoryID > extra_
Definition: ProcessHistoryRegistry.h:36
edm::Hash< ProcessHistoryType >
edm::ProcessHistoryRegistry::vector_type
ProcessHistoryVector vector_type
Definition: ProcessHistoryRegistry.h:22
edm::ProcessHistoryRegistry::operator=
ProcessHistoryRegistry & operator=(ProcessHistoryRegistry const &)=delete
edm::ProcessHistoryVector
std::vector< ProcessHistory > ProcessHistoryVector
Definition: ProcessHistoryRegistry.h:16
value
Definition: value.py:1
edm::ProcessHistoryRegistry::end
ProcessHistoryMap::const_iterator end() const
Definition: ProcessHistoryRegistry.h:32
edm::ProcessHistoryRegistry::reducedProcessHistoryID
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
Definition: ProcessHistoryRegistry.cc:23
edm::ProcessHistoryRegistry::data_
ProcessHistoryMap data_
Definition: ProcessHistoryRegistry.h:35
edm::ProcessHistoryRegistry::collection_type
ProcessHistoryMap collection_type
Definition: ProcessHistoryRegistry.h:21
edm::ProcessHistoryRegistry::getMapped
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
Definition: ProcessHistoryRegistry.cc:29
edm::ProcessHistoryRegistry
Definition: ProcessHistoryRegistry.h:18
edm::ProcessHistory
Definition: ProcessHistory.h:13
edm::ProcessHistoryRegistry::begin
ProcessHistoryMap::const_iterator begin() const
Definition: ProcessHistoryRegistry.h:31
edm::ProcessHistoryRegistry::ProcessHistoryRegistry
ProcessHistoryRegistry()
Definition: ProcessHistoryRegistry.cc:6
crabWrapper.key
key
Definition: crabWrapper.py:19
edm::ProcessHistoryRegistry::value_type
ProcessHistory value_type
Definition: ProcessHistoryRegistry.h:20