Base class used by the JUCE ARA model objects to provide listenable interfaces.
Public Member Functions | |
| ARAListenableModelClass ()=default | |
| Constructor. | |
| virtual | ~ARAListenableModelClass ()=default |
| Destructor. | |
| void | addListener (ListenerType *l) |
Subscribe l to notified by changes to the object. | |
| void | removeListener (ListenerType *l) |
Unsubscribe l from object notifications. | |
| template<typename Callback> | |
| void | notifyListeners (Callback &&callback) |
| Call the provided callback for each of the added listeners. | |
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
inline |
Subscribe l to notified by changes to the object.
| l | The listener instance. |
|
inline |
Unsubscribe l from object notifications.
| l | The listener instance. |
|
inline |
Call the provided callback for each of the added listeners.