#include <SubjectObserver.hpp>
Inheritance diagram for SubjectObserver
Public Methods | |
SubjectObserver ( void ) | |
Default constructor. | |
virtual | ~SubjectObserver ( void ) |
Virtual destructor. | |
bool | operator= ( SubjectObserverCref ) const |
Equality operator. | |
virtual void | addObserver ( corelinux::ObserverPtr , corelinux::Event<corelinux::Identifier> * ) throw ( corelinux::NullPointerException ) |
Add an observer for a specific event. More... | |
virtual void | removeObserver ( corelinux::ObserverPtr ) throw ( corelinux::NullPointerException ) |
Remove an observer from all event notifications. More... | |
virtual void | removeObserver ( corelinux::ObserverPtr , corelinux::Event<corelinux::Identifier> * ) throw ( corelinux::NullPointerException ) |
Remove an observer from specific event notifications. More... | |
virtual corelinux::Iterator< corelinux::ObserverPtr >* | createIterator ( void ) |
Create a iterator for all observers. More... | |
virtual corelinux::Iterator< corelinux::ObserverPtr >* | createIterator ( corelinux::Event<corelinux::Identifier> * ) throw ( corelinux::NullPointerException ) |
Create a iterator for observers of this event. More... | |
virtual void | destroyIterator ( corelinux::Iterator< corelinux::ObserverPtr > * ) throw ( corelinux::NullPointerException ) |
Deletes the iterator instance. More... | |
Protected Methods | |
SubjectObserver ( SubjectObserverCref ) throw ( corelinux::Assertion ) | |
Copy constructor. | |
SubjectObserverRef | operator= ( SubjectObserverCref ) throw ( corelinux::Assertion ) |
Assignment operator. |
Because we have the need for all of our subjects to also be observers, this factors the behavior as well.
|
Add an observer for a specific event.
|
|
Create a iterator for observers of this event.
|
|
Create a iterator for all observers.
Reimplemented from corelinux::Subject. |
|
Deletes the iterator instance.
Reimplemented from corelinux::Subject. |
|
Remove an observer from specific event notifications.
|
|
Remove an observer from all event notifications.
Reimplemented from corelinux::Subject. |