Audacity 3.2.0
|
A move-only handle representing a connection to a Publisher. More...
#include <Observer.h>
Public Member Functions | |
Subscription () | |
Subscription (Subscription &&) | |
Subscription & | operator= (Subscription &&) |
~Subscription () noexcept | |
Calls Reset. More... | |
void | Reset () noexcept |
Breaks the connection (constant time) More... | |
bool | Expired () const |
operator bool () const | |
Private Member Functions | |
Subscription (std::weak_ptr< detail::RecordBase > pRecord) | |
Private Attributes | |
std::weak_ptr< detail::RecordBase > | m_wRecord |
A move-only handle representing a connection to a Publisher.
Definition at line 70 of file Observer.h.
|
default |
|
default |
|
inlinenoexcept |
Calls Reset.
Definition at line 77 of file Observer.h.
|
explicitprivate |
Definition at line 86 of file Observer.cpp.
|
inline |
Definition at line 87 of file Observer.h.
|
inlineexplicit |
Subscription & Observer::Subscription::operator= | ( | Subscription && | other | ) |
Definition at line 89 of file Observer.cpp.
References m_wRecord, and Reset().
|
noexcept |
Breaks the connection (constant time)
Definition at line 101 of file Observer.cpp.
References m_wRecord.
Referenced by ExportFilePanel::ChangeFormat(), EffectUIHost::CleanupRealtime(), operator=(), RealtimeEffectListWindow::ResetDelegate(), RealtimeEffectListWindow::SetDelegate(), WaveformAppearance::Subscribe(), and ClipSegment::~ClipSegment().
|
private |
Definition at line 95 of file Observer.h.
Referenced by operator=(), and Reset().