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 236 of file Effect.h.

Constructor & Destructor Documentation

◆ AddedAnalysisTrack() [1/4]

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

Definition at line 758 of file Effect.cpp.

759 : mpEffect(pEffect)
760{
761 if(!name.empty())
763 else
765}
const TranslatableString name
Definition: Distortion.cpp:82
LabelTrack * mpTrack
Definition: Effect.h:258
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 243 of file Effect.h.

243{}

◆ AddedAnalysisTrack() [4/4]

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

Definition at line 767 of file Effect.cpp.

768{
769 mpEffect = that.mpEffect;
770 mpTrack = that.mpTrack;
771 that.Commit();
772}

◆ ~AddedAnalysisTrack()

Effect::AddedAnalysisTrack::~AddedAnalysisTrack ( )

Definition at line 779 of file Effect.cpp.

780{
781 if (mpEffect) {
782 // not committed -- DELETE the label track
784 }
785}
TrackNodePointer Remove(Track *t)
Remove the Track and return an iterator to what followed it.
Definition: Track.cpp:798

Member Function Documentation

◆ Commit()

void Effect::AddedAnalysisTrack::Commit ( )

Definition at line 774 of file Effect.cpp.

775{
776 mpEffect = nullptr;
777}

◆ get()

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

Definition at line 248 of file Effect.h.

248{ return mpTrack; }

Member Data Documentation

◆ Effect

friend Effect::AddedAnalysisTrack::Effect
private

Definition at line 237 of file Effect.h.

◆ mpEffect

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

Definition at line 257 of file Effect.h.

◆ mpTrack

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

Definition at line 258 of file Effect.h.

Referenced by AddedAnalysisTrack().


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