#include <PhxListeners.h>
Inheritance diagram for Phx::BaseMultiListener< Notifier, Listener, Selector >:

Public Member Functions | |
| virtual | ~BaseMultiListener (void) |
| Destructs the listener, removing it from its notifier if it has one. | |
Protected Member Functions | |
| Notifier * | notifier (void) |
| Gets a raw pointer to the notifier this listener is installed in. | |
| const Notifier * | notifier (void) const |
Friends | |
| class | Manager |
Classes | |
| class | Manager |
| Like BaseListener::Manager, this class manages listeners on behalf of a notifier using BaseMultiListener. More... | |
A multi-listener interface is one that allows the installation of multiple listeners. Generally, these listeners are each from different clients. We try to avoid this by creating a single interface per client, but sometimes the only purpose of the interface is to provide a listener slot to the client. Thus, using a multi-listener interface is just an optimization of this approach, wherein we merge all of the interfaces into a single notifier object that has multiple listeners.
Beyond this, this class is largely the same as BaseListener and should be used in an analagous fashion. The only substantially different portion is the notification phase.
|
||||||||||
|
Gets a raw pointer to the notifier this listener is installed in. This is only safe to access during a listener callback. You should not access it at other times.
|
1.4.2