1 #ifndef ServiceRegistry_ServiceToken_h
2 #define ServiceRegistry_ServiceToken_h
29 class testServicesManager;
30 class TestServicesManagerOrder;
36 namespace serviceregistry {
40 class ServiceWeakToken;
46 friend class ::testServicesManager;
47 friend class ::TestServicesManagerOrder;
83 std::shared_ptr<edm::serviceregistry::ServicesManager>
manager_;
104 std::weak_ptr<edm::serviceregistry::ServicesManager>
manager_;
ServiceToken lock() const
std::weak_ptr< edm::serviceregistry::ServicesManager > manager_
void connectTo(ActivityRegistry &)
the argument's signals are propagated to the Service's held by the token
ServiceWeakToken(ServiceToken const &iToken)
ServiceToken(std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
ServiceWeakToken & operator=(ServiceWeakToken &&)=default
void copySlotsFrom(ActivityRegistry &)
the copy the argument's slots to the token's signals
void copySlotsTo(ActivityRegistry &)
copy our Service's slots to the argument's signals
ServiceWeakToken()=default
ServiceWeakToken & operator=(ServiceToken const &iToken)
ServiceToken & operator=(ServiceToken &&)=default
void connect(ActivityRegistry &)
the argument's signals will forward the token's signals
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_