/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Framework/interface/stream/makeGlobal.h
58 строк
1 KB
Shahzad Malik Muzaffar
[CORE] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:11
05 сен 2024, 17:11
c249daf
Код
Авторство
О чём код?
#ifndef FWCore_Framework_stream_makeGlobal_h #define FWCore_Framework_stream_makeGlobal_h // -*- C++ -*- // // Package: FWCore/Framework // Class : makeGlobal // /** Helper functions for making stream modules Description: [one line class summary] Usage: <usage> */ // // Original Author: Chris Jones // Created: Thu, 22 May 2014 13:55:01 GMT // #include <memory> #include "FWCore/Framework/interface/stream/dummy_helpers.h" namespace edm { class ParameterSet; namespace stream { namespace impl { template <typename T, typename G> std::unique_ptr<G> makeGlobal(edm::ParameterSet const& iPSet, G const*) { return T::initializeGlobalCache(iPSet); } template <typename T> dummy_ptr makeGlobal(edm::ParameterSet const& iPSet, void const*) { return dummy_ptr(); } template <typename T, typename G> T* makeStreamModule(edm::ParameterSet const& iPSet, G const* iGlobal) { return new T(iPSet, iGlobal); } template <typename T> T* makeStreamModule(edm::ParameterSet const& iPSet, void const*) { return new T(iPSet); } template <typename G> inline std::unique_ptr<G> makeInputProcessBlockCacheImpl(G const*) { return std::make_unique<G>(); } inline dummy_ptr makeInputProcessBlockCacheImpl(void const*) { return dummy_ptr(); } } // namespace impl } // namespace stream } // namespace edm #endif