SimG4Core
Notification
interface
Observer.h
Go to the documentation of this file.
1
#ifndef SimG4Core_Notification_Observer_H
2
#define SimG4Core_Notification_Observer_H
3
// -*- C++ -*-
4
//
5
// Package: Notification
6
// Class : Observer
7
//
19
//
20
//
21
22
template
<
class
T>
23
class
Observer
{
24
public
:
25
Observer
() {}
26
virtual
~Observer
() {}
27
33
void
slotForUpdate
(
T
iT) {
update
(iT); }
34
35
protected
:
37
virtual
void
update
(
T
) = 0;
38
39
private
:
40
};
41
42
#endif
Observer
Definition:
Observer.h:23
Observer::~Observer
virtual ~Observer()
Definition:
Observer.h:26
Observer::slotForUpdate
void slotForUpdate(T iT)
Definition:
Observer.h:33
Observer::update
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer::Observer
Observer()
Definition:
Observer.h:25
T
long double T
Definition:
Basic3DVectorLD.h:48
Generated for CMSSW Reference Manual by
1.8.16