CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::ServiceToken Class Reference

#include <ServiceToken.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

std::shared_ptr
< edm::serviceregistry::ServicesManager
manager_
 

Friends

class ::testServicesManager
 
class ::TestServicesManagerOrder
 
class edm::ServiceRegistry
 
class edm::serviceregistry::ServicesManager
 

Detailed Description

Definition at line 40 of file ServiceToken.h.

Constructor & Destructor Documentation

edm::ServiceToken::ServiceToken ( )
inline

Definition at line 49 of file ServiceToken.h.

49 {}
edm::ServiceToken::ServiceToken ( std::shared_ptr< edm::serviceregistry::ServicesManager iManager)
inlineprivate

Definition at line 69 of file ServiceToken.h.

69  :
70  manager_(iManager) {}
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77

Member Function Documentation

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

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

Definition at line 67 of file ServiceToken.cc.

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

68 {
69  if(0!=manager_.get()){
70  manager_->connect(iConnectTo);
71  }
72 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77
void ServiceToken::connectTo ( edm::ActivityRegistry iConnectTo)

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

Definition at line 60 of file ServiceToken.cc.

References manager_.

61 {
62  if(0!=manager_.get()){
63  manager_->connectTo(iConnectTo);
64  }
65 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77
void ServiceToken::copySlotsFrom ( edm::ActivityRegistry iConnectTo)

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

Definition at line 82 of file ServiceToken.cc.

83 {
84  if(0!=manager_.get()){
85  manager_->copySlotsFrom(iConnectTo);
86  }
87 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77
void ServiceToken::copySlotsTo ( edm::ActivityRegistry iConnectTo)

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

Definition at line 75 of file ServiceToken.cc.

Referenced by edm::ScheduleItems::initServices().

76 {
77  if(0!=manager_.get()){
78  manager_->copySlotsTo(iConnectTo);
79  }
80 }
std::shared_ptr< edm::serviceregistry::ServicesManager > manager_
Definition: ServiceToken.h:77

Friends And Related Function Documentation

friend class ::testServicesManager
friend

Definition at line 45 of file ServiceToken.h.

friend class ::TestServicesManagerOrder
friend

Definition at line 46 of file ServiceToken.h.

friend class edm::ServiceRegistry
friend

Definition at line 42 of file ServiceToken.h.

Definition at line 43 of file ServiceToken.h.

Member Data Documentation

std::shared_ptr<edm::serviceregistry::ServicesManager> edm::ServiceToken::manager_
private