CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 28 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.

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