Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
anonymous_namespace{TempoChange.cpp}::ProjectTempo Struct Reference
Inheritance diagram for anonymous_namespace{TempoChange.cpp}::ProjectTempo:
[legend]
Collaboration diagram for anonymous_namespace{TempoChange.cpp}::ProjectTempo:
[legend]

Public Member Functions

 ~ProjectTempo ()=default
 
std::unique_ptr< ClientData::Cloneable<> > Clone () const override
 
- Public Member Functions inherited from ClientData::Cloneable< Covariant, Owner >
 Cloneable ()=default
 
 Cloneable (const Cloneable &)=default
 
Cloneableoperator= (const Cloneable &)=default
 
virtual ~Cloneable ()=default
 
virtual PointerType Clone () const =0
 

Static Public Member Functions

static ProjectTempoGet (ChannelGroup &group)
 
static const ProjectTempoGet (const ChannelGroup &group)
 

Public Attributes

std::optional< double > mProjectTempo
 

Additional Inherited Members

- Public Types inherited from ClientData::Cloneable< Covariant, Owner >
using Base = std::conditional_t< std::is_void_v< Covariant >, Cloneable, Covariant >
 
using PointerType = Owner< Base >
 

Detailed Description

Definition at line 15 of file TempoChange.cpp.

Constructor & Destructor Documentation

◆ ~ProjectTempo()

anonymous_namespace{TempoChange.cpp}::ProjectTempo::~ProjectTempo ( )
default

Member Function Documentation

◆ Clone()

std::unique_ptr< ClientData::Cloneable<> > anonymous_namespace{TempoChange.cpp}::ProjectTempo::Clone ( ) const
inlineoverridevirtual

Implements ClientData::Cloneable< Covariant, Owner >.

Definition at line 17 of file TempoChange.cpp.

18 { return std::make_unique<ProjectTempo>(*this); }

◆ Get() [1/2]

ProjectTempo & anonymous_namespace{TempoChange.cpp}::ProjectTempo::Get ( ChannelGroup group)
static

Definition at line 30 of file TempoChange.cpp.

31{
32 return group.Attachments::Get<ProjectTempo>(projectTempoDataFactory);
33}
const ChannelGroup::Attachments::RegisteredFactory projectTempoDataFactory
Definition: TempoChange.cpp:27

References anonymous_namespace{TempoChange.cpp}::projectTempoDataFactory.

◆ Get() [2/2]

const ProjectTempo & anonymous_namespace{TempoChange.cpp}::ProjectTempo::Get ( const ChannelGroup group)
static

Definition at line 35 of file TempoChange.cpp.

36{
37 return Get(const_cast<ChannelGroup&>(group));
38}
static ProjectTempo & Get(ChannelGroup &group)
Definition: TempoChange.cpp:30

References BasicUI::Get().

Here is the call graph for this function:

Member Data Documentation

◆ mProjectTempo

std::optional<double> anonymous_namespace{TempoChange.cpp}::ProjectTempo::mProjectTempo

Definition at line 23 of file TempoChange.cpp.


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