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

Public Member Functions

 TemporaryClipRemover (ClipMoveState &clipMoveState)
 
void Reinsert (std::unordered_map< Track *, Track * > *pCorrespondence, double offset)
 

Public Attributes

ClipMoveStatestate
 
DetachedIntervals detached
 

Detailed Description

Definition at line 698 of file TimeShiftHandle.cpp.

Constructor & Destructor Documentation

◆ TemporaryClipRemover()

anonymous_namespace{TimeShiftHandle.cpp}::TemporaryClipRemover::TemporaryClipRemover ( ClipMoveState clipMoveState)
inline

Definition at line 699 of file TimeShiftHandle.cpp.

700 : state( clipMoveState )
701 {
702 // Pluck the moving clips out of their tracks
703 for (auto &pair : state.shifters)
704 detached[pair.first] = pair.second->Detach();
705 }
ShifterMap shifters

Member Function Documentation

◆ Reinsert()

void anonymous_namespace{TimeShiftHandle.cpp}::TemporaryClipRemover::Reinsert ( std::unordered_map< Track *, Track * > *  pCorrespondence,
double  offset 
)
inline

Definition at line 707 of file TimeShiftHandle.cpp.

709 {
710 for (auto &pair : detached) {
711 auto pTrack = pair.first;
712 if (pCorrespondence && pCorrespondence->count(pTrack))
713 pTrack = (*pCorrespondence)[pTrack];
714 auto &pShifter = state.shifters[pTrack];
715 if (!pShifter->Attach( std::move( pair.second ), offset ))
717 }
718 }

References anonymous_namespace{TimeShiftHandle.cpp}::MigrationFailure().

Here is the call graph for this function:

Member Data Documentation

◆ detached

DetachedIntervals anonymous_namespace{TimeShiftHandle.cpp}::TemporaryClipRemover::detached

Definition at line 721 of file TimeShiftHandle.cpp.

◆ state

ClipMoveState& anonymous_namespace{TimeShiftHandle.cpp}::TemporaryClipRemover::state

Definition at line 720 of file TimeShiftHandle.cpp.


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