Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxcrt::Observable Class Reference

#include <observed_ptr.h>

+ Inheritance diagram for fxcrt::Observable:
+ Collaboration diagram for fxcrt::Observable:

Classes

class  ObserverIface
 

Public Member Functions

 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 

Protected Member Functions

size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 17 of file observed_ptr.h.

Constructor & Destructor Documentation

◆ Observable() [1/2]

fxcrt::Observable::Observable ( )
default

◆ Observable() [2/2]

fxcrt::Observable::Observable ( const Observable & that)
delete

◆ ~Observable()

fxcrt::Observable::~Observable ( )

Definition at line 14 of file observed_ptr.cpp.

References NotifyObservers().

+ Here is the call graph for this function:

Member Function Documentation

◆ ActiveObserversForTesting()

size_t fxcrt::Observable::ActiveObserversForTesting ( ) const
inlineprotected

Definition at line 36 of file observed_ptr.h.

◆ AddObserver()

void fxcrt::Observable::AddObserver ( ObserverIface * pObserver)

Definition at line 18 of file observed_ptr.cpp.

◆ NotifyObservers()

void fxcrt::Observable::NotifyObservers ( )

Definition at line 28 of file observed_ptr.cpp.

Referenced by CJS_Runtime::~CJS_Runtime(), and ~Observable().

+ Here is the caller graph for this function:

◆ operator=()

Observable & fxcrt::Observable::operator= ( const Observable & that)
delete

◆ RemoveObserver()

void fxcrt::Observable::RemoveObserver ( ObserverIface * pObserver)

Definition at line 23 of file observed_ptr.cpp.


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