Audacity 3.2.0
|
#include <Observer.h>
Public Types | |
using | Visitor = bool(*)(const RecordBase &record, const void *arg) |
Type of function visiting the list; stop visit on true return. More... | |
Public Member Functions | |
RecordList (ExceptionPolicy *pPolicy, Visitor visitor) | |
~RecordList () noexcept | |
Subscription | Subscribe (std::shared_ptr< RecordBase > pRecord) |
bool | Visit (const void *arg) |
Private Attributes | |
ExceptionPolicy *const | m_pPolicy |
const Visitor | m_visitor |
Additional Inherited Members | |
Public Attributes inherited from Observer::detail::RecordLink | |
std::shared_ptr< RecordBase > | next |
Definition at line 53 of file Observer.h.
using Observer::detail::RecordList::Visitor = bool(*)(const RecordBase &record, const void *arg) |
Type of function visiting the list; stop visit on true return.
Definition at line 56 of file Observer.h.
|
explicit |
visitor != nullptr
Definition at line 26 of file Observer.cpp.
References m_visitor.
|
noexcept |
Non-defaulted destructor. Beware stack growth
Definition at line 33 of file Observer.cpp.
References Observer::detail::RecordLink::next.
Subscription Observer::detail::RecordList::Subscribe | ( | std::shared_ptr< RecordBase > | pRecord | ) |
pRecord != nullptr
Definition at line 41 of file Observer.cpp.
References Observer::detail::RecordLink::next.
bool Observer::detail::RecordList::Visit | ( | const void * | arg | ) |
Definition at line 52 of file Observer.cpp.
References m_pPolicy, m_visitor, Observer::detail::RecordLink::next, Observer::ExceptionPolicy::OnBeginPublish(), Observer::ExceptionPolicy::OnEachFailedCallback(), and Observer::ExceptionPolicy::OnEndPublish().
|
private |
Definition at line 64 of file Observer.h.
Referenced by Visit().
|
private |
Definition at line 65 of file Observer.h.
Referenced by RecordList(), and Visit().