CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #ifndef __GCCXML__
26  ProcessHistoryRegistry(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
27  ProcessHistoryRegistry& operator=(ProcessHistoryRegistry const&) = delete; // Disallow copying and moving
28 #endif
29  bool registerProcessHistory(ProcessHistory const& processHistory);
30  bool getMapped(ProcessHistoryID const& key, ProcessHistory& value) const;
31  ProcessHistory const* getMapped(ProcessHistoryID const& key) const;
32  ProcessHistoryID const& reducedProcessHistoryID(ProcessHistoryID const& fullID) const;
33  ProcessHistoryMap::const_iterator begin() const {
34  return data_.begin();
35  }
36  ProcessHistoryMap::const_iterator end() const {
37  return data_.end();
38  }
39  private:
41  std::map<ProcessHistoryID, ProcessHistoryID> extra_;
42  };
43 }
44 #endif
std::vector< ProcessHistory > ProcessHistoryVector
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
bool registerProcessHistory(ProcessHistory const &processHistory)
ProcessHistoryMap::const_iterator begin() const
ProcessHistoryRegistry & operator=(ProcessHistoryRegistry const &)=delete
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
std::map< ProcessHistoryID, ProcessHistoryID > extra_
ProcessHistoryMap::const_iterator end() const
list key
Definition: combine.py:13
std::map< ProcessHistoryID, ProcessHistory > ProcessHistoryMap