CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Friends

edm::ServiceToken Class Reference

#include <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.

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

Definition at line 63 of file ServiceToken.h.

                                                                                :
      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.

{
   if(0!=manager_.get()){
      manager_->connect(iConnectTo);
   }
}
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_.

{
   if(0!=manager_.get()){
      manager_->connectTo(iConnectTo);
   }
}
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.

{
  if(0!=manager_.get()){
    manager_->copySlotsFrom(iConnectTo);
  }
}
void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo)

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

Definition at line 76 of file ServiceToken.cc.

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

{
  if(0!=manager_.get()){
    manager_->copySlotsTo(iConnectTo);
  }
}

Friends And Related Function Documentation

friend class edm::ServiceRegistry [friend]

Definition at line 40 of file ServiceToken.h.

Definition at line 41 of file ServiceToken.h.


Member Data Documentation