#include <Observer.h>
Inheritance diagram for Observer:
Public Member Functions | |
virtual | ~Observer () |
virtual void | update (const Subject *const subject)=0 |
Protected Member Functions | |
Observer () |
An Observer just has to be able to be notified that there need to be an update. The constructor is protected to stop any instances of this class being constructed.
Although we could use a vector for this, we use a list so that when we remove an item from the middle of the sequence we do not have the overhead of moving items.
Version: 1.1 1999.10.02
Definition at line 24 of file Observer.h.
|
destructor (virtual). Definition at line 28 of file Observer.h. |
|
constructor (empty). Definition at line 36 of file Observer.h. |
|
Update method is called everytime a Observer calls notify().
Implemented in GStockCalc, and StockGui. |