CMS 3D CMS Logo

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

#include <ServiceToken.h>

Public Member Functions

void connect (ActivityRegistry &)
 the argument's signals will forward the token's signals More...
 
void connectTo (ActivityRegistry &)
 the argument's signals are propagated to the Service's held by the token More...
 
void copySlotsFrom (ActivityRegistry &)
 the copy the argument's slots to the token's signals More...
 
void copySlotsTo (ActivityRegistry &)
 copy our Service's slots to the argument's signals More...
 
ServiceTokenoperator= (ServiceToken &&)=default
 
ServiceTokenoperator= (ServiceToken const &)=default
 
 ServiceToken ()
 
 ServiceToken (ServiceToken &&)=default
 
 ServiceToken (ServiceToken const &)=default
 

Private Member Functions

 ServiceToken (std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
 

Private Attributes

std::shared_ptr< edm::serviceregistry::ServicesManagermanager_
 

Friends

class ::testServicesManager
 
class ::TestServicesManagerOrder
 
class edm::ServiceRegistry
 
class edm::serviceregistry::ServicesManager
 
class ServiceWeakToken
 

Detailed Description

Definition at line 42 of file ServiceToken.h.

Constructor & Destructor Documentation

◆ ServiceToken() [1/4]

edm::ServiceToken::ServiceToken ( )
inline

Definition at line 50 of file ServiceToken.h.

50 {}

◆ ServiceToken() [2/4]

edm::ServiceToken::ServiceToken ( ServiceToken &&  )
default

◆ ServiceToken() [3/4]

edm::ServiceToken::ServiceToken ( ServiceToken const &  )
default

◆ ServiceToken() [4/4]

edm::ServiceToken::ServiceToken ( std::shared_ptr< edm::serviceregistry::ServicesManager iManager)
inlineprivate

Definition at line 76 of file ServiceToken.h.

76 : manager_(iManager) {}
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83

Member Function Documentation

◆ connect()

void ServiceToken::connect ( edm::ActivityRegistry iConnectTo)

the argument's signals will forward the token's signals

Definition at line 63 of file ServiceToken.cc.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

63  {
64  if (nullptr != manager_.get()) {
65  manager_->connect(iConnectTo);
66  }
67 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83

◆ connectTo()

void ServiceToken::connectTo ( edm::ActivityRegistry iConnectTo)

the argument's signals are propagated to the Service's held by the token

Definition at line 58 of file ServiceToken.cc.

References manager_.

58  {
59  if (nullptr != manager_.get()) {
60  manager_->connectTo(iConnectTo);
61  }
62 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83

◆ copySlotsFrom()

void ServiceToken::copySlotsFrom ( edm::ActivityRegistry iConnectTo)

the copy the argument's slots to the token's signals

Definition at line 74 of file ServiceToken.cc.

74  {
75  if (nullptr != manager_.get()) {
76  manager_->copySlotsFrom(iConnectTo);
77  }
78 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83

◆ copySlotsTo()

void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo)

copy our Service's slots to the argument's signals

Definition at line 69 of file ServiceToken.cc.

69  {
70  if (nullptr != manager_.get()) {
71  manager_->copySlotsTo(iConnectTo);
72  }
73 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Friends And Related Function Documentation

◆ ::testServicesManager

friend class ::testServicesManager
friend

Definition at line 46 of file ServiceToken.h.

◆ ::TestServicesManagerOrder

friend class ::TestServicesManagerOrder
friend

Definition at line 47 of file ServiceToken.h.

◆ edm::ServiceRegistry

friend class edm::ServiceRegistry
friend

Definition at line 43 of file ServiceToken.h.

◆ edm::serviceregistry::ServicesManager

Definition at line 44 of file ServiceToken.h.

◆ ServiceWeakToken

friend class ServiceWeakToken
friend

Definition at line 73 of file ServiceToken.h.

Member Data Documentation

◆ manager_

std::shared_ptr<edm::serviceregistry::ServicesManager> edm::ServiceToken::manager_
private