CMS 3D CMS Logo

makeGlobal.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_stream_makeGlobal_h
2 #define FWCore_Framework_stream_makeGlobal_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : makeGlobal
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu, 22 May 2014 13:55:01 GMT
19 //
20 
21 // system include files
22 #include <memory>
23 // user include files
25 // forward declarations
26 
27 namespace edm {
28  class ParameterSet;
29  namespace stream {
30  namespace impl {
31  template<typename T, typename G>
32  std::unique_ptr<G> makeGlobal(edm::ParameterSet const& iPSet, G const*) {
33  return T::initializeGlobalCache(iPSet);
34  }
35  template<typename T>
36  dummy_ptr makeGlobal(edm::ParameterSet const& iPSet, void const*) {
37  return dummy_ptr();
38  }
39 
40  template< typename T, typename G>
42  G const* iGlobal) {
43  return new T(iPSet,iGlobal);
44  }
45 
46  template< typename T>
48  void const* ) {
49  return new T(iPSet);
50  }
51  }
52  }
53 }
54 #endif
T * makeStreamModule(edm::ParameterSet const &iPSet, G const *iGlobal)
Definition: makeGlobal.h:41
std::unique_ptr< G > makeGlobal(edm::ParameterSet const &iPSet, G const *)
Definition: makeGlobal.h:32
HLT enums.
long double T