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
// $Id: Observer.h,v 1.8 2007/12/02 05:17:47 chrjones Exp $
21
//
22
23
24
template
<
class
T>
25
class
Observer
26
{
27
public
:
28
Observer
() {}
29
virtual
~Observer
() {}
30
36
void
slotForUpdate
(
T
iT) {
37
update
(iT);
38
}
39
protected
:
41
virtual
void
update
(
T
) = 0;
42
private
:
43
};
44
45
#endif
Observer::~Observer
virtual ~Observer()
Definition:
Observer.h:29
Observer
Definition:
Observer.h:25
Observer::update
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer::Observer
Observer()
Definition:
Observer.h:28
Observer::slotForUpdate
void slotForUpdate(T iT)
Definition:
Observer.h:36
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5