JUCE
Public Member Functions | List of all members
ARAListenableModelClass< ListenerType > Class Template Reference

Base class used by the JUCE ARA model objects to provide listenable interfaces. More...

Public Member Functions

 ARAListenableModelClass ()=default
 Constructor. More...
 
virtual ~ARAListenableModelClass ()=default
 Destructor. More...
 
void addListener (ListenerType *l)
 Subscribe l to notified by changes to the object. More...
 
void removeListener (ListenerType *l)
 Unsubscribe l from object notifications. More...
 
template<typename Callback >
void notifyListeners (Callback &&callback)
 Call the provided callback for each of the added listeners. More...
 

Detailed Description

template<class ListenerType>
class ARAListenableModelClass< ListenerType >

Base class used by the JUCE ARA model objects to provide listenable interfaces.

Constructor & Destructor Documentation

◆ ARAListenableModelClass()

template<class ListenerType >
ARAListenableModelClass< ListenerType >::ARAListenableModelClass ( )
default

Constructor.

◆ ~ARAListenableModelClass()

template<class ListenerType >
virtual ARAListenableModelClass< ListenerType >::~ARAListenableModelClass ( )
virtualdefault

Destructor.

Member Function Documentation

◆ addListener()

template<class ListenerType >
void ARAListenableModelClass< ListenerType >::addListener ( ListenerType *  l)

Subscribe l to notified by changes to the object.

Parameters
lThe listener instance.

◆ removeListener()

template<class ListenerType >
void ARAListenableModelClass< ListenerType >::removeListener ( ListenerType *  l)

Unsubscribe l from object notifications.

Parameters
lThe listener instance.

◆ notifyListeners()

template<class ListenerType >
template<typename Callback >
void ARAListenableModelClass< ListenerType >::notifyListeners ( Callback &&  callback)

Call the provided callback for each of the added listeners.


The documentation for this class was generated from the following file: