CMS 3D CMS Logo

HistoryAppender.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_HistoryAppender_h
2 #define FWCore_Framework_HistoryAppender_h
3 
6 
7 #include <memory>
8 
9 namespace edm {
10 
11  class ProcessConfiguration;
12 
14  public:
16 
17  // Used to append the current process to the process history
18  // when necessary. Optimized to cache the results so it
19  // does not need to repeat the same calculations many times.
20  std::shared_ptr<ProcessHistory const> appendToProcessHistory(ProcessHistoryID const& inputPHID,
21  ProcessHistory const* inputProcessHistory,
22  ProcessConfiguration const& pc);
23 
24  private:
25  HistoryAppender(HistoryAppender const&) = delete;
26  HistoryAppender& operator=(HistoryAppender const&) = delete;
27 
28  // Throws if the new process name is already in the process
29  // process history
30  void checkProcessHistory(ProcessHistory const& ph, ProcessConfiguration const& pc) const;
31 
33  std::shared_ptr<ProcessHistory const> m_cachedHistory;
34  };
35 } // namespace edm
36 #endif
ProcessHistoryID.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::HistoryAppender::checkProcessHistory
void checkProcessHistory(ProcessHistory const &ph, ProcessConfiguration const &pc) const
Definition: HistoryAppender.cc:49
edm::HistoryAppender::HistoryAppender
HistoryAppender()
Definition: HistoryAppender.cc:19
ProcessHistory.h
edm::HistoryAppender::m_cachedHistory
std::shared_ptr< ProcessHistory const > m_cachedHistory
Definition: HistoryAppender.h:33
edm::Hash< ProcessHistoryType >
edm::HistoryAppender
Definition: HistoryAppender.h:13
edm::HistoryAppender::appendToProcessHistory
std::shared_ptr< ProcessHistory const > appendToProcessHistory(ProcessHistoryID const &inputPHID, ProcessHistory const *inputProcessHistory, ProcessConfiguration const &pc)
Definition: HistoryAppender.cc:21
edm::ProcessHistory
Definition: ProcessHistory.h:13
edm::HistoryAppender::m_cachedInputPHID
ProcessHistoryID m_cachedInputPHID
Definition: HistoryAppender.h:32
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::HistoryAppender::operator=
HistoryAppender & operator=(HistoryAppender const &)=delete