CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::ServicesManager
manager_
 

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

edm::ServiceToken::ServiceToken ( )
inline

Definition at line 50 of file ServiceToken.h.

50 {}
edm::ServiceToken::ServiceToken ( ServiceToken &&  )
default
edm::ServiceToken::ServiceToken ( ServiceToken const &  )
default
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

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
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
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
void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo)

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

Definition at line 69 of file ServiceToken.cc.

Referenced by edm::ScheduleItems::initServices().

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

Friends And Related Function Documentation

friend class ::testServicesManager
friend

Definition at line 46 of file ServiceToken.h.

friend class ::TestServicesManagerOrder
friend

Definition at line 47 of file ServiceToken.h.

friend class edm::ServiceRegistry
friend

Definition at line 43 of file ServiceToken.h.

Definition at line 44 of file ServiceToken.h.

friend class ServiceWeakToken
friend

Definition at line 73 of file ServiceToken.h.

Member Data Documentation

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