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= (ServiceToken const &iToken)
 
ServiceWeakTokenoperator= (ServiceWeakToken &&)=default
 
ServiceWeakTokenoperator= (ServiceWeakToken const &)=default
 
 ServiceWeakToken ()=default
 
 ServiceWeakToken (ServiceToken const &iToken)
 
 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_) {}

◆ 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= ( ServiceToken const &  iToken)
inline

Definition at line 96 of file ServiceToken.h.

96  {
97  manager_ = iToken.manager_;
98  return *this;
99  }

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

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=().

ServiceToken
edm::ServiceWeakToken::manager_
std::weak_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:104