Loading [MathJax]/extensions/TeX/AMSsymbols.js
PSCF
v1.2
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
w
z
Typedefs
b
c
e
f
i
m
o
p
q
r
s
t
w
Enumerations
Related Symbols
o
r
s
w
Files
File List
File Members
All
Functions
Macros
src
util
misc
Observer.h
1
#ifndef UTIL_OBSERVER_H
2
#define UTIL_OBSERVER_H
3
4
/*
5
* Util Package - C++ Utilities for Scientific Computation
6
*
7
* Copyright 2010 - 2017, The Regents of the University of Minnesota
8
* Distributed under the terms of the GNU General Public License.
9
*/
10
11
namespace
Util
12
{
13
23
template
<
typename
Event>
24
class
Observer
25
{
26
27
public
:
28
29
// Default constructor.
30
34
virtual
~Observer
();
35
41
virtual
void
update
(
const
Event& event) = 0;
42
43
};
24
class
Observer
{
…
};
44
45
// Destructor
46
template
<
typename
Event>
47
Observer<Event>::~Observer
()
48
{}
47
Observer<Event>::~Observer
() {
…
}
49
50
}
51
52
#endif
Util::Observer
Abstract class template for observer in the observer design pattern.
Definition
Observer.h:25
Util::Observer::~Observer
virtual ~Observer()
Destructor.
Definition
Observer.h:47
Util::Observer::update
virtual void update(const Event &event)=0
Respond to news of an event.
Util
Utility classes for scientific computation.
Definition
accumulators.mod:1
Generated on Fri Mar 28 2025 00:57:29 for PSCF by
1.12.0