Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:03

0001 // -*- C++ -*-
0002 //
0003 // Package:     ServiceRegistry
0004 // Class  :     ServiceToken
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Thu Sep  8 04:26:12 EDT 2005
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "FWCore/ServiceRegistry/interface/ServiceToken.h"
0017 #include "FWCore/ServiceRegistry/interface/ServicesManager.h"
0018 
0019 //
0020 // constants, enums and typedefs
0021 //
0022 
0023 //
0024 // static data member definitions
0025 //
0026 
0027 //
0028 // constructors and destructor
0029 //
0030 //ServiceToken::ServiceToken()
0031 //{
0032 //}
0033 
0034 // ServiceToken::ServiceToken(const ServiceToken& rhs)
0035 // {
0036 //    // do actual copying here;
0037 // }
0038 
0039 //ServiceToken::~ServiceToken()
0040 //{
0041 //}
0042 
0043 //
0044 // assignment operators
0045 //
0046 // const ServiceToken& ServiceToken::operator=(const ServiceToken& rhs)
0047 // {
0048 //   //An exception safe implementation is
0049 //   ServiceToken temp(rhs);
0050 //   swap(rhs);
0051 //
0052 //   return *this;
0053 // }
0054 
0055 //
0056 // member functions
0057 //
0058 void edm::ServiceToken::connectTo(edm::ActivityRegistry& iConnectTo) {
0059   if (nullptr != manager_.get()) {
0060     manager_->connectTo(iConnectTo);
0061   }
0062 }
0063 void edm::ServiceToken::connect(edm::ActivityRegistry& iConnectTo) {
0064   if (nullptr != manager_.get()) {
0065     manager_->connect(iConnectTo);
0066   }
0067 }
0068 
0069 void edm::ServiceToken::copySlotsTo(edm::ActivityRegistry& iConnectTo) {
0070   if (nullptr != manager_.get()) {
0071     manager_->copySlotsTo(iConnectTo);
0072   }
0073 }
0074 void edm::ServiceToken::copySlotsFrom(edm::ActivityRegistry& iConnectTo) {
0075   if (nullptr != manager_.get()) {
0076     manager_->copySlotsFrom(iConnectTo);
0077   }
0078 }
0079 
0080 //
0081 // const member functions
0082 //
0083 
0084 //
0085 // static member functions
0086 //