#include <Observer.h>
Inheritance diagram for Subject:

Public Member Functions | |
| virtual | ~Subject () |
| Virtual destructor allows proper cleanup. | |
| virtual void | attach (Observer *) |
| Attach an Observer to this Subject. | |
| virtual void | detach (Observer *) |
| Detach an Observer from this Subject. | |
| virtual void | notify () |
| Notify all Observers currently attached to this Subject. | |
Protected Member Functions | |
| Subject () | |
| Default constructor is only available to subclasses. | |
A Subject maintains a list of Observer objects to which notifications may be sent. For more information, refer to Design Patterns.
|
|
Virtual destructor allows proper cleanup.
|
|
|
Default constructor is only available to subclasses.
|
|
|
Attach an Observer to this Subject.
|
|
|
Detach an Observer from this Subject.
|
|
|
Notify all Observers currently attached to this Subject.
|
1.4.3