CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
edm::serviceregistry::ServiceMaker< T, TMaker > Class Template Reference

#include <ServiceMaker.h>

Inheritance diagram for edm::serviceregistry::ServiceMaker< T, TMaker >:
edm::serviceregistry::ServiceMakerBase

Public Member Functions

bool make (ParameterSet const &iPS, ActivityRegistry &iAR, ServicesManager &oSM) const override
 
bool processWideService () const override
 
bool saveConfiguration () const override
 
 ServiceMaker ()
 
std::type_info const & serviceType () const override
 
- Public Member Functions inherited from edm::serviceregistry::ServiceMakerBase
 ServiceMakerBase ()
 
virtual ~ServiceMakerBase ()
 

Private Member Functions

ServiceMaker const & operator= (ServiceMaker const &)=delete
 
 ServiceMaker (ServiceMaker const &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from edm::serviceregistry::ServiceMakerBase
bool testSaveConfiguration (SaveConfiguration const *) const
 
bool testSaveConfiguration (void const *) const
 

Detailed Description

template<typename T, typename TMaker = AllArgsMaker<T>>
class edm::serviceregistry::ServiceMaker< T, TMaker >

Definition at line 68 of file ServiceMaker.h.

Constructor & Destructor Documentation

template<typename T , typename TMaker = AllArgsMaker<T>>
edm::serviceregistry::ServiceMaker< T, TMaker >::ServiceMaker ( )
inline

Definition at line 70 of file ServiceMaker.h.

70 {}
template<typename T , typename TMaker = AllArgsMaker<T>>
edm::serviceregistry::ServiceMaker< T, TMaker >::ServiceMaker ( ServiceMaker< T, TMaker > const &  )
privatedelete

Member Function Documentation

template<typename T , typename TMaker = AllArgsMaker<T>>
bool edm::serviceregistry::ServiceMaker< T, TMaker >::make ( ParameterSet const &  iPS,
ActivityRegistry iAR,
ServicesManager oSM 
) const
inlineoverridevirtual

Implements edm::serviceregistry::ServiceMakerBase.

Definition at line 76 of file ServiceMaker.h.

References eostools::move(), and edm::serviceregistry::ServicesManager::put().

76  {
77  TMaker maker;
78  std::unique_ptr<T> pService(maker.make(iPS, iAR));
79  auto ptr = std::make_shared<ServiceWrapper<T> >(std::move(pService));
80  return oSM.put(ptr);
81  }
def move(src, dest)
Definition: eostools.py:511
template<typename T , typename TMaker = AllArgsMaker<T>>
ServiceMaker const& edm::serviceregistry::ServiceMaker< T, TMaker >::operator= ( ServiceMaker< T, TMaker > const &  )
privatedelete
template<typename T , typename TMaker = AllArgsMaker<T>>
bool edm::serviceregistry::ServiceMaker< T, TMaker >::processWideService ( ) const
inlineoverridevirtual

Implements edm::serviceregistry::ServiceMakerBase.

Definition at line 87 of file ServiceMaker.h.

References edm::service::isProcessWideService().

87  {
88  return service::isProcessWideService(static_cast<typename TMaker::concrete_t const*>(nullptr));
89  }
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:98
template<typename T , typename TMaker = AllArgsMaker<T>>
bool edm::serviceregistry::ServiceMaker< T, TMaker >::saveConfiguration ( ) const
inlineoverridevirtual

Implements edm::serviceregistry::ServiceMakerBase.

Definition at line 83 of file ServiceMaker.h.

References edm::serviceregistry::ServiceMakerBase::testSaveConfiguration().

83  {
84  return ServiceMakerBase::testSaveConfiguration(static_cast<typename TMaker::concrete_t const*>(nullptr));
85  }
bool testSaveConfiguration(SaveConfiguration const *) const
template<typename T , typename TMaker = AllArgsMaker<T>>
std::type_info const& edm::serviceregistry::ServiceMaker< T, TMaker >::serviceType ( ) const
inlineoverridevirtual

Implements edm::serviceregistry::ServiceMakerBase.

Definition at line 74 of file ServiceMaker.h.

74 { return typeid(T); }
long double T