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
std::vector< ProcessHistory > ProcessHistoryVector
bool registerProcessHistory(ProcessHistory const &processHistory)
ProcessHistoryRegistry & operator=(ProcessHistoryRegistry const &)=delete
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
Definition: value.py:1
std::map< ProcessHistoryID, ProcessHistoryID > extra_
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
ProcessHistoryMap::const_iterator end() const
HLT enums.
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap
ProcessHistoryMap::const_iterator begin() const