CMS 3D CMS Logo

edm::ServiceToken Class Reference

#include <FWCore/ServiceRegistry/interface/ServiceToken.h>

List of all members.

Public Member Functions

void connect (ActivityRegistry &)
 the argument's signals will forward the token's signals
void connectTo (ActivityRegistry &)
 the argument's signals are propagated to the Service's held by the token
void copySlotsFrom (ActivityRegistry &)
 the copy the argument's slots to the token's signals
void copySlotsTo (ActivityRegistry &)
 copy our Service's slots to the argument's signals
 ServiceToken ()

Private Member Functions

 ServiceToken (boost::shared_ptr< edm::serviceregistry::ServicesManager > iManager)

Private Attributes

boost::shared_ptr
< edm::serviceregistry::ServicesManager
manager_

Friends

class edm::ServiceRegistry
class edm::serviceregistry::ServicesManager


Detailed Description

Definition at line 38 of file ServiceToken.h.


Constructor & Destructor Documentation

edm::ServiceToken::ServiceToken (  )  [inline]

Definition at line 43 of file ServiceToken.h.

00043 {}

edm::ServiceToken::ServiceToken ( boost::shared_ptr< edm::serviceregistry::ServicesManager iManager  )  [inline, private]

Definition at line 63 of file ServiceToken.h.

00063                                                                                 :
00064       manager_(iManager) {}
      


Member Function Documentation

void ServiceToken::connect ( edm::ActivityRegistry iConnectTo  ) 

the argument's signals will forward the token's signals

Definition at line 68 of file ServiceToken.cc.

References manager_.

00069 {
00070    if(0!=manager_.get()){
00071       manager_->connect(iConnectTo);
00072    }
00073 }

void ServiceToken::connectTo ( edm::ActivityRegistry iConnectTo  ) 

the argument's signals are propagated to the Service's held by the token

Definition at line 61 of file ServiceToken.cc.

References manager_.

00062 {
00063    if(0!=manager_.get()){
00064       manager_->connectTo(iConnectTo);
00065    }
00066 }

void ServiceToken::copySlotsFrom ( edm::ActivityRegistry iConnectTo  ) 

the copy the argument's slots to the token's signals

Definition at line 83 of file ServiceToken.cc.

References manager_.

00084 {
00085   if(0!=manager_.get()){
00086     manager_->copySlotsFrom(iConnectTo);
00087   }
00088 }

void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo  ) 

copy our Service's slots to the argument's signals

Definition at line 76 of file ServiceToken.cc.

References manager_.

Referenced by edm::EventProcessor::init().

00077 {
00078   if(0!=manager_.get()){
00079     manager_->copySlotsTo(iConnectTo);
00080   }
00081 }


Friends And Related Function Documentation

friend class edm::ServiceRegistry [friend]

Definition at line 40 of file ServiceToken.h.

friend class edm::serviceregistry::ServicesManager [friend]

Definition at line 41 of file ServiceToken.h.


Member Data Documentation

boost::shared_ptr<edm::serviceregistry::ServicesManager> edm::ServiceToken::manager_ [private]

Definition at line 71 of file ServiceToken.h.

Referenced by connect(), connectTo(), copySlotsFrom(), copySlotsTo(), edm::ServiceRegistry::setContext(), and edm::ServiceRegistry::unsetContext().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:44:16 2009 for CMSSW by  doxygen 1.5.4