Public Types | |
| typedef void(* | Method )(Event event) |
| The first-form method. | |
| typedef void(* | MethodB )() |
| The second-form method. | |
Public Member Functions | |
| void | add (Method method) |
| Add a method to the list. | |
| void | add (MethodB method) |
| Add a no-argument-form method to the list. | |
| void | add (Dispatcher *dispatcher) |
| Add a dispatcher pointer to the list. | |
| void | remove (Method m) |
| Remove a method from the list. | |
| void | remove (MethodB m) |
| Remove a method from the list. | |
| void | remove (Dispatcher *d) |
| Remove a dispatcher from the list. | |
| void | notify (Event e) |
| Notify the methods that an event has occured. | |
| void | notify () |
| Notify the methods with an empty event. | |
| void | notifyOrEmpty (Event e, Dispatcher *other) |
| Notify this dispatcher if non-empty, or the other dispatcher if this one is. | |
| void | notifyOrEmpty (Dispatcher *other) |
| Notify this dispatcher if non-empty, or the other dispatcher if this one is. | |
| bit | isEmpty () |
| Return whether there are no entries in this dispatcher. | |
Public Attributes | |
| Method[] | methods |
| The list of methods called by notify. | |
| MethodB[] | methodbs |
| No-argument-form methods. | |
| Dispatcher * | dispatchers |
| Dispatcher pointers. | |
|
|
Add a method to the list. Frees the previous list if append resulted in re-allocation. |
1.3.2