CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
sim_act::Signaler< T > Class Template Reference

#include <Signaler.h>

Inheritance diagram for sim_act::Signaler< T >:
Observer< const T * >

Public Types

typedef Observer< const T * > * slot_type
 

Public Member Functions

void connect (Observer< const T * > *iObs)
 does not take ownership of memory More...
 
void connect (Observer< const T * > &iObs)
 does not take ownership of memory More...
 
void operator() (const T *iSignal) const
 
 Signaler ()
 
 ~Signaler () override
 
- Public Member Functions inherited from Observer< const T * >
 Observer ()
 
void slotForUpdate (const T * iT)
 
virtual ~Observer ()
 

Private Member Functions

const Signaleroperator= (const Signaler &)=delete
 
 Signaler (const Signaler &)=delete
 
void update (const T *iData) override
 This routine will be called when the appropriate signal arrives. More...
 

Private Attributes

std::vector< Observer< const T * > * > observers_
 

Additional Inherited Members

Detailed Description

template<typename T>
class sim_act::Signaler< T >

Definition at line 36 of file Signaler.h.

Member Typedef Documentation

template<typename T>
typedef Observer<const T*>* sim_act::Signaler< T >::slot_type

Definition at line 38 of file Signaler.h.

Constructor & Destructor Documentation

template<typename T>
sim_act::Signaler< T >::Signaler ( )
inline

Definition at line 39 of file Signaler.h.

Referenced by sim_act::Signaler< EndOfTrack >::connect().

39 {}
template<typename T>
sim_act::Signaler< T >::~Signaler ( )
inlineoverride

Definition at line 40 of file Signaler.h.

40 {}
template<typename T>
sim_act::Signaler< T >::Signaler ( const Signaler< T > &  )
privatedelete

Member Function Documentation

template<typename T>
void sim_act::Signaler< T >::connect ( Observer< const T * > *  iObs)
inline

does not take ownership of memory

Definition at line 55 of file Signaler.h.

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(), RunManagerMTWorker::Connect(), RunManagerMT::Connect(), RunManager::Connect(), SimActivityRegistry::connect(), 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(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu(), SimActivityRegistry::watchBeginOfEvent(), SimActivityRegistry::watchBeginOfJob(), SimActivityRegistry::watchBeginOfRun(), SimActivityRegistry::watchBeginOfTrack(), SimActivityRegistry::watchDDDWorld(), SimActivityRegistry::watchEndOfEvent(), SimActivityRegistry::watchEndOfRun(), SimActivityRegistry::watchEndOfTrack(), and SimActivityRegistry::watchG4Step().

55 { observers_.push_back(iObs); }
std::vector< Observer< const T * > * > observers_
Definition: Signaler.h:67
template<typename T>
void sim_act::Signaler< T >::connect ( Observer< const T * > &  iObs)
inline

does not take ownership of memory

Definition at line 58 of file Signaler.h.

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(), o2o_db_cfgmap.DbManagerDAQ::update_hashmap(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

58 { observers_.push_back(&iObs); }
std::vector< Observer< const T * > * > observers_
Definition: Signaler.h:67
template<typename T>
void sim_act::Signaler< T >::operator() ( const T iSignal) const
inline

Definition at line 43 of file Signaler.h.

Referenced by sim_act::Signaler< EndOfTrack >::update().

43  {
44  typedef typename std::vector<Observer<const T*>*>::const_iterator iterator;
45  for (iterator it = observers_.begin(); it != observers_.end(); ++it) {
46  (*it)->slotForUpdate(iSignal);
47  }
48  }
std::vector< Observer< const T * > * > observers_
Definition: Signaler.h:67
template<typename T>
const Signaler& sim_act::Signaler< T >::operator= ( const Signaler< T > &  )
privatedelete
template<typename T>
void sim_act::Signaler< T >::update ( const T )
inlineoverrideprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const T * >.

Definition at line 65 of file Signaler.h.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

65 { this->operator()(iData); }
void operator()(const T *iSignal) const
Definition: Signaler.h:43

Member Data Documentation

template<typename T>
std::vector<Observer<const T*>*> sim_act::Signaler< T >::observers_
private