Audacity 3.2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AddedAnalysisTrack Class Reference

#include <AnalysisTracks.h>

Collaboration diagram for AddedAnalysisTrack:
[legend]

Public Member Functions

 AddedAnalysisTrack (Effect *pEffect, const wxString &name)
 
 AddedAnalysisTrack ()
 
 AddedAnalysisTrack (AddedAnalysisTrack &&that)
 
LabelTrackget () const
 
void Commit ()
 
 ~AddedAnalysisTrack ()
 

Private Member Functions

 AddedAnalysisTrack (const AddedAnalysisTrack &)=delete
 

Private Attributes

EffectmpEffect {}
 
LabelTrackmpTrack {}
 

Detailed Description

Definition at line 26 of file AnalysisTracks.h.

Constructor & Destructor Documentation

◆ AddedAnalysisTrack() [1/4]

AddedAnalysisTrack::AddedAnalysisTrack ( const AddedAnalysisTrack )
privatedelete

◆ AddedAnalysisTrack() [2/4]

AddedAnalysisTrack::AddedAnalysisTrack ( Effect pEffect,
const wxString &  name 
)

Definition at line 23 of file AnalysisTracks.cpp.

24 : mpEffect(pEffect)
25{
26 if(!name.empty())
28 else
30}
wxString name
Definition: TagsEditor.cpp:166
LabelTrack * mpTrack
std::shared_ptr< TrackList > mTracks
Definition: EffectBase.h:116
static LabelTrack * Create(TrackList &trackList, const wxString &name)
Create a new LabelTrack with specified name and append it to the trackList.
Definition: LabelTrack.cpp:109

References LabelTrack::Create(), mpTrack, EffectBase::mTracks, and name.

Here is the call graph for this function:

◆ AddedAnalysisTrack() [3/4]

AddedAnalysisTrack::AddedAnalysisTrack ( )
inline

Definition at line 31 of file AnalysisTracks.h.

31{}

◆ AddedAnalysisTrack() [4/4]

AddedAnalysisTrack::AddedAnalysisTrack ( AddedAnalysisTrack &&  that)

Definition at line 32 of file AnalysisTracks.cpp.

33{
34 mpEffect = that.mpEffect;
35 mpTrack = that.mpTrack;
36 that.Commit();
37}

References mpEffect, and mpTrack.

◆ ~AddedAnalysisTrack()

AddedAnalysisTrack::~AddedAnalysisTrack ( )

Definition at line 44 of file AnalysisTracks.cpp.

45{
46 if (mpEffect) {
47 // not committed -- DELETE the label track
48 mpEffect->mTracks->Remove(*mpTrack);
49 }
50}

References mpEffect, mpTrack, and EffectBase::mTracks.

Member Function Documentation

◆ Commit()

void AddedAnalysisTrack::Commit ( )

Definition at line 39 of file AnalysisTracks.cpp.

40{
41 mpEffect = nullptr;
42}

References mpEffect.

◆ get()

LabelTrack * AddedAnalysisTrack::get ( ) const
inline

Definition at line 36 of file AnalysisTracks.h.

36{ return mpTrack; }

Member Data Documentation

◆ mpEffect

Effect* AddedAnalysisTrack::mpEffect {}
private

Definition at line 45 of file AnalysisTracks.h.

Referenced by AddedAnalysisTrack(), Commit(), and ~AddedAnalysisTrack().

◆ mpTrack

LabelTrack* AddedAnalysisTrack::mpTrack {}
private

Definition at line 46 of file AnalysisTracks.h.

Referenced by AddedAnalysisTrack(), and ~AddedAnalysisTrack().


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