Audacity 3.2.0
Public Member Functions | List of all members
FrameStatistics::UpdatePublisher Struct Reference

A helper that notifies the view that a specific section has changed. More...

#include <FrameStatistics.h>

Inheritance diagram for FrameStatistics::UpdatePublisher:
[legend]
Collaboration diagram for FrameStatistics::UpdatePublisher:
[legend]

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
 
Publisheroperator= (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...
 

Detailed Description

A helper that notifies the view that a specific section has changed.

Definition at line 50 of file FrameStatistics.h.

Member Function Documentation

◆ Invoke()

void FrameStatistics::UpdatePublisher::Invoke ( FrameStatistics::SectionID  id)

Definition at line 130 of file FrameStatistics.cpp.

131{
132 Publish(id);
133}
CallbackReturn Publish(const SectionID &message)
Send a message to connected callbacks.
Definition: Observer.h:207

Referenced by FrameStatistics::AddEvent().

Here is the caller graph for this function:

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