Audacity 3.2.0
|
A helper that notifies the view that a specific section has changed. More...
#include <FrameStatistics.h>
Public Member Functions | |
void | Invoke (SectionID id) |
Public Member Functions inherited from Observer::Publisher< SectionID > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Additional Inherited Members | |
Public Types inherited from Observer::Publisher< SectionID > | |
using | message_type = SectionID |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const SectionID &) > |
Type of functions that can be connected to the Publisher. More... | |
Static Public Attributes inherited from Observer::Publisher< SectionID > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from Observer::Publisher< SectionID > | |
CallbackReturn | Publish (const SectionID &message) |
Send a message to connected callbacks. More... | |
A helper that notifies the view that a specific section has changed.
Definition at line 50 of file FrameStatistics.h.
void FrameStatistics::UpdatePublisher::Invoke | ( | FrameStatistics::SectionID | id | ) |
Definition at line 130 of file FrameStatistics.cpp.
Referenced by FrameStatistics::AddEvent().