FWCore
ServiceRegistry
src
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
16
#include "
FWCore/ServiceRegistry/interface/ServiceToken.h
"
17
#include "
FWCore/ServiceRegistry/interface/ServicesManager.h
"
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
//
58
void
edm::ServiceToken::connectTo
(
edm::ActivityRegistry
& iConnectTo) {
59
if
(
nullptr
!=
manager_
.get()) {
60
manager_
->connectTo(iConnectTo);
61
}
62
}
63
void
edm::ServiceToken::connect
(
edm::ActivityRegistry
& iConnectTo) {
64
if
(
nullptr
!= manager_.get()) {
65
manager_->connect(iConnectTo);
66
}
67
}
68
69
void
edm::ServiceToken::copySlotsTo
(
edm::ActivityRegistry
& iConnectTo) {
70
if
(
nullptr
!= manager_.get()) {
71
manager_->copySlotsTo(iConnectTo);
72
}
73
}
74
void
edm::ServiceToken::copySlotsFrom
(
edm::ActivityRegistry
& iConnectTo) {
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
//
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
ServiceToken.h
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::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
ServicesManager.h
edm::ServiceToken::manager_
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition:
ServiceToken.h:75
Generated for CMSSW Reference Manual by
1.8.16