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

#include <Effect.h>

Collaboration diagram for Effect::AddedAnalysisTrack:
[legend]

Public Member Functions

 AddedAnalysisTrack ()
 
 AddedAnalysisTrack (AddedAnalysisTrack &&that)
 
LabelTrackget () const
 
void Commit ()
 
 ~AddedAnalysisTrack ()
 

Private Member Functions

 AddedAnalysisTrack (Effect *pEffect, const wxString &name)
 
 AddedAnalysisTrack (const AddedAnalysisTrack &) PROHIBITED
 

Private Attributes

friend Effect
 
EffectmpEffect {}
 
LabelTrackmpTrack {}
 

Detailed Description

Definition at line 321 of file Effect.h.

Constructor & Destructor Documentation

◆ AddedAnalysisTrack() [1/4]

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

Definition at line 773 of file Effect.cpp.

774 : mpEffect(pEffect)
775{
776 if(!name.empty())
778 else
780}
const TranslatableString name
Definition: Distortion.cpp:82
LabelTrack * mpTrack
Definition: Effect.h:343
TrackList * mTracks
Definition: EffectBase.h:125
static LabelTrack * Create(TrackList &trackList, const wxString &name)
Create a new LabelTrack with specified name and append it to the trackList.
Definition: LabelTrack.cpp:71

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

Here is the call graph for this function:

◆ AddedAnalysisTrack() [2/4]

Effect::AddedAnalysisTrack::AddedAnalysisTrack ( const AddedAnalysisTrack )
private

◆ AddedAnalysisTrack() [3/4]

Effect::AddedAnalysisTrack::AddedAnalysisTrack ( )
inline

Definition at line 328 of file Effect.h.

328{}

◆ AddedAnalysisTrack() [4/4]

Effect::AddedAnalysisTrack::AddedAnalysisTrack ( AddedAnalysisTrack &&  that)

Definition at line 782 of file Effect.cpp.

783{
784 mpEffect = that.mpEffect;
785 mpTrack = that.mpTrack;
786 that.Commit();
787}

◆ ~AddedAnalysisTrack()

Effect::AddedAnalysisTrack::~AddedAnalysisTrack ( )

Definition at line 794 of file Effect.cpp.

795{
796 if (mpEffect) {
797 // not committed -- DELETE the label track
799 }
800}
TrackNodePointer Remove(Track *t)
Remove the Track and return an iterator to what followed it.
Definition: Track.cpp:783

Member Function Documentation

◆ Commit()

void Effect::AddedAnalysisTrack::Commit ( )

Definition at line 789 of file Effect.cpp.

790{
791 mpEffect = nullptr;
792}

◆ get()

LabelTrack * Effect::AddedAnalysisTrack::get ( ) const
inline

Definition at line 333 of file Effect.h.

333{ return mpTrack; }

Member Data Documentation

◆ Effect

friend Effect::AddedAnalysisTrack::Effect
private

Definition at line 322 of file Effect.h.

◆ mpEffect

Effect* Effect::AddedAnalysisTrack::mpEffect {}
private

Definition at line 342 of file Effect.h.

◆ mpTrack

LabelTrack* Effect::AddedAnalysisTrack::mpTrack {}
private

Definition at line 343 of file Effect.h.

Referenced by AddedAnalysisTrack().


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