CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ServiceWeakToken Class Reference

#include <ServiceToken.h>

Public Member Functions

ServiceToken lock () const
 
ServiceWeakTokenoperator= (ServiceWeakToken &&)=default
 
ServiceWeakTokenoperator= (ServiceWeakToken const &)=default
 
ServiceWeakTokenoperator= (ServiceToken const &iToken)
 
 ServiceWeakToken (ServiceToken const &iToken)
 
 ServiceWeakToken ()=default
 
 ServiceWeakToken (ServiceWeakToken &&)=default
 
 ServiceWeakToken (ServiceWeakToken const &)=default
 

Private Attributes

std::weak_ptr< edm::serviceregistry::ServicesManagermanager_
 

Detailed Description

Definition at line 86 of file ServiceToken.h.

Constructor & Destructor Documentation

◆ ServiceWeakToken() [1/4]

edm::ServiceWeakToken::ServiceWeakToken ( ServiceToken const &  iToken)
inline

Definition at line 88 of file ServiceToken.h.

88 : manager_(iToken.manager_) {}
std::weak_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:104

◆ ServiceWeakToken() [2/4]

edm::ServiceWeakToken::ServiceWeakToken ( )
default

◆ ServiceWeakToken() [3/4]

edm::ServiceWeakToken::ServiceWeakToken ( ServiceWeakToken &&  )
default

◆ ServiceWeakToken() [4/4]

edm::ServiceWeakToken::ServiceWeakToken ( ServiceWeakToken const &  )
default

Member Function Documentation

◆ lock()

ServiceToken edm::ServiceWeakToken::lock ( ) const
inline

◆ operator=() [1/3]

ServiceWeakToken& edm::ServiceWeakToken::operator= ( ServiceWeakToken &&  )
default

◆ operator=() [2/3]

ServiceWeakToken& edm::ServiceWeakToken::operator= ( ServiceWeakToken const &  )
default

◆ operator=() [3/3]

ServiceWeakToken& edm::ServiceWeakToken::operator= ( ServiceToken const &  iToken)
inline

Definition at line 96 of file ServiceToken.h.

References edm::ServiceToken::manager_, and manager_.

96  {
97  manager_ = iToken.manager_;
98  return *this;
99  }
std::weak_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:104

Member Data Documentation

◆ manager_

std::weak_ptr<edm::serviceregistry::ServicesManager> edm::ServiceWeakToken::manager_
private

Definition at line 104 of file ServiceToken.h.

Referenced by lock(), and operator=().