openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::Observer< T > Class Template Referenceabstract

Generic Gang-of-Four Observer class, templatized edition. More...

#include <Observer.hh>

Inheritance diagram for openmsx::Observer< T >:
Inheritance graph
[legend]

Public Member Functions

 Observer (const Observer &)=delete
 
 Observer (Observer &&)=delete
 
Observeroperator= (const Observer &)=delete
 
Observeroperator= (Observer &&)=delete
 
virtual void update (const T &subject) noexcept=0
 
virtual void subjectDeleted (const T &)
 

Protected Member Functions

 Observer ()=default
 
 ~Observer ()=default
 

Detailed Description

template<typename T>
class openmsx::Observer< T >

Generic Gang-of-Four Observer class, templatized edition.

Definition at line 9 of file Observer.hh.

Constructor & Destructor Documentation

◆ Observer() [1/3]

template<typename T >
openmsx::Observer< T >::Observer ( const Observer< T > &  )
delete

◆ Observer() [2/3]

template<typename T >
openmsx::Observer< T >::Observer ( Observer< T > &&  )
delete

◆ Observer() [3/3]

template<typename T >
openmsx::Observer< T >::Observer ( )
protecteddefault

◆ ~Observer()

template<typename T >
openmsx::Observer< T >::~Observer ( )
protecteddefault

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Observer & openmsx::Observer< T >::operator= ( const Observer< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
Observer & openmsx::Observer< T >::operator= ( Observer< T > &&  )
delete

◆ subjectDeleted()

template<typename T >
virtual void openmsx::Observer< T >::subjectDeleted ( const T &  )
inlinevirtual

Definition at line 18 of file Observer.hh.

◆ update()

template<typename T >
virtual void openmsx::Observer< T >::update ( const T &  subject)
pure virtualnoexcept

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