CMS 3D CMS Logo

ServiceToken.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: ServiceRegistry
4 // Class : ServiceToken
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Sep 8 04:26:12 EDT 2005
11 //
12 
13 // system include files
14 
15 // user include files
18 
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
30 //ServiceToken::ServiceToken()
31 //{
32 //}
33 
34 // ServiceToken::ServiceToken(const ServiceToken& rhs)
35 // {
36 // // do actual copying here;
37 // }
38 
39 //ServiceToken::~ServiceToken()
40 //{
41 //}
42 
43 //
44 // assignment operators
45 //
46 // const ServiceToken& ServiceToken::operator=(const ServiceToken& rhs)
47 // {
48 // //An exception safe implementation is
49 // ServiceToken temp(rhs);
50 // swap(rhs);
51 //
52 // return *this;
53 // }
54 
55 //
56 // member functions
57 //
59  if (nullptr != manager_.get()) {
60  manager_->connectTo(iConnectTo);
61  }
62 }
64  if (nullptr != manager_.get()) {
65  manager_->connect(iConnectTo);
66  }
67 }
68 
70  if (nullptr != manager_.get()) {
71  manager_->copySlotsTo(iConnectTo);
72  }
73 }
75  if (nullptr != manager_.get()) {
76  manager_->copySlotsFrom(iConnectTo);
77  }
78 }
79 
80 //
81 // const member functions
82 //
83 
84 //
85 // static member functions
86 //
void connectTo(ActivityRegistry &)
the argument&#39;s signals are propagated to the Service&#39;s held by the token
Definition: ServiceToken.cc:58
void copySlotsFrom(ActivityRegistry &)
the copy the argument&#39;s slots to the token&#39;s signals
Definition: ServiceToken.cc:74
void copySlotsTo(ActivityRegistry &)
copy our Service&#39;s slots to the argument&#39;s signals
Definition: ServiceToken.cc:69
void connect(ActivityRegistry &)
the argument&#39;s signals will forward the token&#39;s signals
Definition: ServiceToken.cc:63
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:83