Inheritance diagram for Subject:
Public Methods | |
virtual | ~Subject () |
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 Methods | |
Subject () | |
Private Attributes | |
list< Observer * > | m_observers |
A Subject maintains a list of Observer objects to which notifications may be sent. For more information, refer to Design Patterns.
|
|
|
|
|
Attach an Observer to this Subject.
|
|
Detach an Observer from this Subject.
|
|
Notify all Observers currently attached to this Subject.
|
|
|