CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
virtual ~Signaler ()
 
- Public Member Functions inherited from Observer< const T * >
 Observer ()
 
void slotForUpdate (const T *iT)
 
virtual ~Observer ()
 

Private Member Functions

const Signaleroperator= (const Signaler &)
 
 Signaler (const Signaler &)
 
void update (const T *iData)
 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 40 of file Signaler.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file Signaler.h.

41 {}
template<typename T>
virtual sim_act::Signaler< T >::~Signaler ( )
inlinevirtual

Definition at line 42 of file Signaler.h.

42 {}
template<typename T>
sim_act::Signaler< T >::Signaler ( const Signaler< T > &  )
private

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 59 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(), RunManager::Connect(), RunManagerMT::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(), 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().

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

does not take ownership of memory

Definition at line 64 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(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

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

Definition at line 45 of file Signaler.h.

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

45  {
46  typedef typename std::vector<Observer<const T*>* >::const_iterator iterator;
47  for( iterator it = observers_.begin();
48  it != observers_.end();
49  ++it) {
50  (*it)->slotForUpdate(iSignal);
51  }
52  }
std::vector< Observer< const T * > * > observers_
Definition: Signaler.h:77
template<typename T>
const Signaler& sim_act::Signaler< T >::operator= ( const Signaler< T > &  )
private
template<typename T>
void sim_act::Signaler< T >::update ( const T )
inlineprivatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const T * >.

Definition at line 73 of file Signaler.h.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), relval_steps.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().

73  {
74  this->operator()(iData);
75  }
void operator()(const T *iSignal) const
Definition: Signaler.h:45

Member Data Documentation

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