MuseScore  3.4
Music composition and notation
Public Member Functions | Private Attributes | List of all members
Ms::Notifier< Data > Class Template Reference

#include <notifier.hpp>

Public Member Functions

 Notifier ()=default
 
 Notifier (const Notifier< Data > &)
 
Notifieroperator= (const Notifier< Data > &)
 
 ~Notifier ()
 
void addListener (Listener< Data > *l)
 
void removeListener (Listener< Data > *l)
 
void notify (Data d) const
 

Private Attributes

std::vector< Listener< Data > * > _listeners
 
bool _atChange = false
 

Constructor & Destructor Documentation

◆ Notifier() [1/2]

template<typename Data>
Ms::Notifier< Data >::Notifier ( )
default

◆ Notifier() [2/2]

template<typename Data>
Ms::Notifier< Data >::Notifier ( const Notifier< Data > &  )
inline

◆ ~Notifier()

template<typename Data>
Ms::Notifier< Data >::~Notifier ( )
inline

Member Function Documentation

◆ addListener()

template<typename Data>
void Ms::Notifier< Data >::addListener ( Listener< Data > *  l)
inline

◆ notify()

template<typename Data>
void Ms::Notifier< Data >::notify ( Data  d) const
inline

◆ operator=()

template<typename Data>
Notifier& Ms::Notifier< Data >::operator= ( const Notifier< Data > &  )
inline

◆ removeListener()

template<typename Data>
void Ms::Notifier< Data >::removeListener ( Listener< Data > *  l)
inline

Member Data Documentation

◆ _atChange

template<typename Data>
bool Ms::Notifier< Data >::_atChange = false
private

◆ _listeners

template<typename Data>
std::vector<Listener<Data>*> Ms::Notifier< Data >::_listeners
private

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