CMS 3D CMS Logo

ServiceToken.h
Go to the documentation of this file.
1 #ifndef ServiceRegistry_ServiceToken_h
2 #define ServiceRegistry_ServiceToken_h
3 // -*- C++ -*-
4 //
5 // Package: ServiceRegistry
6 // Class : ServiceToken
7 //
18 //
19 // Original Author: Chris Jones
20 // Created: Tue Sep 6 18:31:44 EDT 2005
21 //
22 
23 // system include files
24 #include <memory>
25 
26 // user include files
27 
28 // forward declarations
29 class testServicesManager;
30 class TestServicesManagerOrder;
31 
32 namespace edm {
33  class ServiceRegistry;
34  class ActivityRegistry;
35 
36  namespace serviceregistry {
37  class ServicesManager;
38  }
39 
40  class ServiceToken {
41  friend class edm::ServiceRegistry;
43  //for testing
44  friend class ::testServicesManager;
45  friend class ::TestServicesManagerOrder;
46 
47  public:
49  //virtual ~ServiceToken();
50 
51  // ---------- const member functions ---------------------
52 
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56 
61 
66 
67  private:
68  ServiceToken(std::shared_ptr<edm::serviceregistry::ServicesManager> iManager) : manager_(iManager) {}
69 
70  //ServiceToken(const ServiceToken&); // stop default
71 
72  //const ServiceToken& operator=(const ServiceToken&); // stop default
73 
74  // ---------- member data --------------------------------
75  std::shared_ptr<edm::serviceregistry::ServicesManager> manager_;
76  };
77 } // namespace edm
78 
79 #endif
edm::ServiceToken::copySlotsFrom
void copySlotsFrom(ActivityRegistry &)
the copy the argument's slots to the token's signals
Definition: ServiceToken.cc:74
edm::ServiceToken::copySlotsTo
void copySlotsTo(ActivityRegistry &)
copy our Service's slots to the argument's signals
Definition: ServiceToken.cc:69
ActivityRegistry
edm::ServiceToken::ServiceToken
ServiceToken()
Definition: ServiceToken.h:48
edm
HLT enums.
Definition: AlignableModifier.h:19
ServiceRegistry
edm::serviceregistry::ServicesManager
Definition: ServicesManager.h:44
edm::ServiceToken::connectTo
void connectTo(ActivityRegistry &)
the argument's signals are propagated to the Service's held by the token
Definition: ServiceToken.cc:58
edm::ServiceToken
Definition: ServiceToken.h:40
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
edm::ServiceToken::connect
void connect(ActivityRegistry &)
the argument's signals will forward the token's signals
Definition: ServiceToken.cc:63
edm::ServiceToken::ServiceToken
ServiceToken(std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
Definition: ServiceToken.h:68
ServicesManager
edm::ServiceToken::manager_
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:75
edm::ServiceRegistry
Definition: ServiceRegistry.h:38