forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'origin/CMSSW_7_1_X' into CMSSW_7_0_X
- Loading branch information
Showing
3 changed files
with
55 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#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 | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
|
||
// forward declarations | ||
|
||
namespace edm { | ||
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); | ||
} | ||
} | ||
} | ||
} | ||
#endif |