/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Framework/interface/HistoryAppender.h
35 строк
1 KB
Christopher Jones
Fix `scram b code-checks` warnings associated with FWCore
08 сен 2020, 22:04
08 сен 2020, 22:04
24df5ff
Код
Авторство
О чём код?
#ifndef FWCore_Framework_HistoryAppender_h #define FWCore_Framework_HistoryAppender_h #include "DataFormats/Provenance/interface/ProcessHistory.h" #include "DataFormats/Provenance/interface/ProcessHistoryID.h" #include <memory> namespace edm { class ProcessConfiguration; class HistoryAppender { public: HistoryAppender(); HistoryAppender(HistoryAppender const&) = delete; HistoryAppender& operator=(HistoryAppender const&) = delete; // Used to append the current process to the process history // when necessary. Optimized to cache the results so it // does not need to repeat the same calculations many times. std::shared_ptr<ProcessHistory const> appendToProcessHistory(ProcessHistoryID const& inputPHID, ProcessHistory const* inputProcessHistory, ProcessConfiguration const& pc); private: // Throws if the new process name is already in the process // process history void checkProcessHistory(ProcessHistory const& ph, ProcessConfiguration const& pc) const; ProcessHistoryID m_cachedInputPHID; std::shared_ptr<ProcessHistory const> m_cachedHistory; }; } // namespace edm #endif