Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Framework
interface
stream
EDFilterAdaptor.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_stream_EDFilterAdaptor_h
2
#define FWCore_Framework_stream_EDFilterAdaptor_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/Framework
6
// Class : EDFilterAdaptor
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Fri, 02 Aug 2013 18:09:18 GMT
19
//
20
21
// system include files
22
23
// user include files
24
#include "
FWCore/Framework/interface/stream/EDFilterAdaptorBase.h
"
25
#include "
FWCore/Framework/interface/stream/ProducingModuleAdaptor.h
"
26
#include "
FWCore/Framework/src/MakeModuleHelper.h
"
27
28
// forward declarations
29
30
namespace
edm {
31
namespace
stream {
32
33
template
<
typename
T>
using
EDFilterAdaptor
=
ProducingModuleAdaptor<T,EDFilterBase, EDFilterAdaptorBase>
;
34
35
template
<
typename
ABase,
typename
ModType>
struct
BaseToAdaptor
;
36
37
template
<
typename
ModType>
struct
BaseToAdaptor
<
EDFilterAdaptorBase
,ModType> {
38
typedef
EDFilterAdaptor<ModType>
Type
;
39
};
40
}
41
42
template
<>
43
class
MakeModuleHelper
<edm::
stream::EDFilterAdaptorBase
>
44
{
45
typedef
edm::stream::EDFilterAdaptorBase
Base
;
46
public
:
47
template
<
typename
ModType>
48
static
std::unique_ptr<Base>
makeModule
(
ParameterSet
const
& pset) {
49
typedef
typename
stream::BaseToAdaptor<Base,ModType>::Type
Adaptor;
50
std::unique_ptr<Adaptor>
module
= std::unique_ptr<Adaptor>(
new
Adaptor(pset));
51
return
std::unique_ptr<Base>(module.release());
52
}
53
};
54
55
}
56
57
#endif
edm::stream::ProducingModuleAdaptor
Definition:
ProducingModuleAdaptor.h:37
edm::stream::EDFilterAdaptor
edm::MakeModuleHelper< edm::stream::EDFilterAdaptorBase >::makeModule
static std::unique_ptr< Base > makeModule(ParameterSet const &pset)
Definition:
EDFilterAdaptor.h:48
edm::MakeModuleHelper
Definition:
MakeModuleHelper.h:28
edm::MakeModuleHelper< edm::stream::EDFilterAdaptorBase >::Base
edm::stream::EDFilterAdaptorBase Base
Definition:
EDFilterAdaptor.h:45
ProducingModuleAdaptor.h
edm::stream::EDFilterAdaptorBase
Definition:
EDFilterAdaptorBase.h:46
edm::stream::BaseToAdaptor< EDFilterAdaptorBase, ModType >::Type
EDFilterAdaptor< ModType > Type
Definition:
EDFilterAdaptor.h:38
edm::stream::BaseToAdaptor
Definition:
EDAnalyzerAdaptor.h:39
edm::ParameterSet
Definition:
ParameterSet.h:36
MakeModuleHelper.h
EDFilterAdaptorBase.h
module
Definition:
vlib.h:208
Generated for CMSSW Reference Manual by
1.8.5