linuxsampler 2.3.1
LinuxSampler::ListenerList< L > Class Template Reference

#include <EventListeners.h>

Public Member Functions

void AddListener (L l)
 Registers the specified listener for receiving event messages.
 
void RemoveListener (L l)
 Removes the specified listener.
 
void RemoveAllListeners ()
 Removes all listeners.
 
int GetListenerCount ()
 Gets the number of the registered listeners.
 
L GetListener (int index)
 Gets the listener at the specified position.
 

Detailed Description

template<class L>
class LinuxSampler::ListenerList< L >

Definition at line 36 of file EventListeners.h.

Member Function Documentation

◆ AddListener()

template<class L >
void LinuxSampler::ListenerList< L >::AddListener ( L  l)
inline

Registers the specified listener for receiving event messages.

Definition at line 41 of file EventListeners.h.

◆ GetListener()

template<class L >
L LinuxSampler::ListenerList< L >::GetListener ( int  index)
inline

Gets the listener at the specified position.

Parameters
indexThe position of the listener to return.

Definition at line 77 of file EventListeners.h.

◆ GetListenerCount()

template<class L >
int LinuxSampler::ListenerList< L >::GetListenerCount ( )
inline

Gets the number of the registered listeners.

Definition at line 69 of file EventListeners.h.

◆ RemoveAllListeners()

template<class L >
void LinuxSampler::ListenerList< L >::RemoveAllListeners ( )
inline

Removes all listeners.

Definition at line 62 of file EventListeners.h.

◆ RemoveListener()

template<class L >
void LinuxSampler::ListenerList< L >::RemoveListener ( L  l)
inline

Removes the specified listener.

Definition at line 48 of file EventListeners.h.


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