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 
41  {
42  friend class edm::ServiceRegistry;
44  //for testing
45  friend class ::testServicesManager;
46  friend class ::TestServicesManagerOrder;
47 
48  public:
50  //virtual ~ServiceToken();
51 
52  // ---------- const member functions ---------------------
53 
54  // ---------- static member functions --------------------
55 
56  // ---------- member functions ---------------------------
57 
62 
67 
68  private:
69  ServiceToken(std::shared_ptr<edm::serviceregistry::ServicesManager> iManager):
70  manager_(iManager) {}
71 
72  //ServiceToken(const ServiceToken&); // stop default
73 
74  //const ServiceToken& operator=(const ServiceToken&); // stop default
75 
76  // ---------- member data --------------------------------
77  std::shared_ptr<edm::serviceregistry::ServicesManager> manager_;
78  };
79 }
80 
81 #endif
void copySlotsTo(ActivityRegistry &)
copy our Service&#39;s slots to the argument&#39;s signals
ServiceToken(std::shared_ptr< edm::serviceregistry::ServicesManager > iManager)
Definition: ServiceToken.h:69
void connectTo(ActivityRegistry &iOther)
causes iOther&#39;s signals to be forward to us
void copySlotsFrom(ActivityRegistry &)
the copy the argument&#39;s slots to the our signals
edm::Handle< T > connect(const T *&ptr, edm::EDGetTokenT< T > token, const edm::Event &evt)
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77
HLT enums.