Audacity 3.2.0
Public Types | Public Attributes | List of all members
ChannelGroup::ChannelGroupData Struct Reference

#include <Channel.h>

Inheritance diagram for ChannelGroup::ChannelGroupData:
[legend]
Collaboration diagram for ChannelGroup::ChannelGroupData:
[legend]

Public Types

using Attachments = ChannelGroup::Attachments
 
- Public Types inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >
using DataType = ClientData
 
using DataPointer = Pointer< ClientData >
 
using DataFactory = std::function< DataPointer(Host &) >
 Type of function from which RegisteredFactory is constructed; it builds attachments. More...
 

Public Attributes

wxString mName
 
LinkType mLinkType { LinkType::None }
 
std::optional< double > mProjectTempo
 
bool mSelected { false }
 

Additional Inherited Members

- Public Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >
 ~Site ()
 
 Site ()
 
 Site (const Site &other)
 
Siteoperator= (const Site &other)
 
 Site (Site &&other)
 
Siteoperator= (Site &&other)
 
size_t size () const
 How many attachment pointers are in the Site. More...
 
template<typename Subclass = ClientData>
Subclass & Get (const RegisteredFactory &key)
 Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More...
 
template<typename Subclass = const ClientData>
auto Get (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass & >
 Get reference to an attachment, creating on demand if not present, down-cast it to Subclass. More...
 
template<typename Subclass = ClientData>
Subclass * Find (const RegisteredFactory &key)
 Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More...
 
template<typename Subclass = const ClientData>
auto Find (const RegisteredFactory &key) const -> std::enable_if_t< std::is_const< Subclass >::value, Subclass * >
 Get a (bare) pointer to an attachment, or null, down-cast it to Subclass *; will not create on demand. More...
 
template<typename ReplacementPointer >
void Assign (const RegisteredFactory &key, ReplacementPointer &&replacement)
 Reassign Site's pointer to ClientData. More...
 
- Static Public Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >
static size_t numFactories ()
 How many static factories have been registered with this specialization of Site. More...
 
- Protected Member Functions inherited from ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >
template<typename Function >
void ForEach (const Function &function)
 Invoke function on each ClientData object that has been created in this. More...
 
template<typename Function >
void ForEach (const Function &function) const
 Invoke function on each ClientData object that has been created in this. More...
 
template<typename Function >
ClientData * FindIf (const Function &function)
 Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More...
 
template<typename Function >
const ClientData * FindIf (const Function &function) const
 Return pointer to first attachment in this that is not null and satisfies a predicate, or nullptr. More...
 
void BuildAll ()
 For each RegisteredFactory, if the corresponding attachment is absent in this, build and store it. More...
 

Detailed Description

Definition at line 582 of file Channel.h.

Member Typedef Documentation

◆ Attachments

Definition at line 583 of file Channel.h.

Member Data Documentation

◆ mLinkType

LinkType ChannelGroup::ChannelGroupData::mLinkType { LinkType::None }

Definition at line 585 of file Channel.h.

Referenced by Track::DoSetLinkType().

◆ mName

wxString ChannelGroup::ChannelGroupData::mName

Definition at line 584 of file Channel.h.

Referenced by Track::GetName(), and Track::SetName().

◆ mProjectTempo

std::optional<double> ChannelGroup::ChannelGroupData::mProjectTempo

Definition at line 586 of file Channel.h.

Referenced by Track::GetProjectTempo(), and Track::OnProjectTempoChange().

◆ mSelected

bool ChannelGroup::ChannelGroupData::mSelected { false }

Definition at line 587 of file Channel.h.

Referenced by Track::GetSelected(), and Track::SetSelected().


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