Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
23
template
<
class
T>
24
class
Observer
25
{
26
public
:
27
Observer
() {}
28
virtual
~Observer
() {}
29
35
void
slotForUpdate
(
T
iT) {
36
update
(iT);
37
}
38
protected
:
40
virtual
void
update
(
T
) = 0;
41
private
:
42
};
43
44
#endif
Observer::~Observer
virtual ~Observer()
Definition:
Observer.h:28
Observer
Definition:
Observer.h:24
Observer::update
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer::Observer
Observer()
Definition:
Observer.h:27
Observer::slotForUpdate
void slotForUpdate(T iT)
Definition:
Observer.h:35
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5