CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::serviceregistry::ServiceWrapper< T > Class Template Reference

#include <ServiceRegistry.h>

Inheritance diagram for edm::serviceregistry::ServiceWrapper< T >:
edm::serviceregistry::ServiceWrapperBase

Public Member Functions

T const & get () const
 
Tget ()
 
const ServiceWrapperoperator= (const ServiceWrapper &)=delete
 
 ServiceWrapper (std::unique_ptr< T > iService)
 
 ServiceWrapper (const ServiceWrapper &)=delete
 
- Public Member Functions inherited from edm::serviceregistry::ServiceWrapperBase
const ServiceWrapperBaseoperator= (const ServiceWrapperBase &)=delete
 
 ServiceWrapperBase ()
 
 ServiceWrapperBase (const ServiceWrapperBase &)=delete
 
virtual ~ServiceWrapperBase ()
 

Private Attributes

edm::propagate_const< std::unique_ptr< T > > service_
 

Detailed Description

template<class T>
class edm::serviceregistry::ServiceWrapper< T >

Definition at line 36 of file ServiceRegistry.h.

Constructor & Destructor Documentation

◆ ServiceWrapper() [1/2]

template<class T >
edm::serviceregistry::ServiceWrapper< T >::ServiceWrapper ( std::unique_ptr< T iService)
inline

Definition at line 38 of file ServiceWrapper.h.

38 : service_(std::move(iService)) {}
def move(src, dest)
Definition: eostools.py:511
edm::propagate_const< std::unique_ptr< T > > service_

◆ ServiceWrapper() [2/2]

template<class T >
edm::serviceregistry::ServiceWrapper< T >::ServiceWrapper ( const ServiceWrapper< T > &  )
delete

Member Function Documentation

◆ get() [1/2]

template<class T >
T const& edm::serviceregistry::ServiceWrapper< T >::get ( ) const
inline

◆ get() [2/2]

template<class T >
T& edm::serviceregistry::ServiceWrapper< T >::get ( )
inline

◆ operator=()

template<class T >
const ServiceWrapper& edm::serviceregistry::ServiceWrapper< T >::operator= ( const ServiceWrapper< T > &  )
delete

Member Data Documentation

◆ service_

template<class T >
edm::propagate_const<std::unique_ptr<T> > edm::serviceregistry::ServiceWrapper< T >::service_
private

Definition at line 52 of file ServiceWrapper.h.

Referenced by edm::serviceregistry::ServiceWrapper< T >::get().