CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
edm::MakeModuleHelper< Base > Class Template Reference

#include "MakeModuleHelper.h"

Public Member Functions

 MakeModuleHelper ()=delete
 
 MakeModuleHelper (const MakeModuleHelper &)=delete
 
const MakeModuleHelperoperator= (const MakeModuleHelper &)=delete
 

Static Public Member Functions

template<typename T >
static std::unique_ptr< Base > makeModule (ParameterSet const &pset)
 

Detailed Description

template<typename Base>
class edm::MakeModuleHelper< Base >

Description: A template class which can be specialized to create a module from a user type

Usage: <usage>

Definition at line 30 of file MakeModuleHelper.h.

Constructor & Destructor Documentation

template<typename Base >
edm::MakeModuleHelper< Base >::MakeModuleHelper ( )
delete
template<typename Base >
edm::MakeModuleHelper< Base >::MakeModuleHelper ( const MakeModuleHelper< Base > &  )
delete

Member Function Documentation

template<typename Base >
template<typename T >
static std::unique_ptr<Base> edm::MakeModuleHelper< Base >::makeModule ( ParameterSet const &  pset)
inlinestatic

Definition at line 38 of file MakeModuleHelper.h.

References muonDTDigis_cfi::pset.

38  {
39  auto module = std::make_unique<T>(pset);
40  return std::unique_ptr<Base>(module.release());
41  }
Definition: vlib.h:198
template<typename Base >
const MakeModuleHelper& edm::MakeModuleHelper< Base >::operator= ( const MakeModuleHelper< Base > &  )
delete