MCPcopy Create free account
hub / github.com/audacity/audacity / GetNext

Method GetNext

libraries/lib-track/Track.cpp:625–639  ·  view source on GitHub ↗

Return a track in the list that comes after Track t

Source from the content-addressed store, hash-verified

623
624/// Return a track in the list that comes after Track t
625Track *TrackList::GetNext(Track &t, bool linked) const
626{
627 auto node = t.GetNode();
628 if (!isNull(node)) {
629 if (linked && t.HasLinkedTrack())
630 node = getNext(node);
631
632 if (!isNull(node))
633 node = getNext(node);
634
635 if (!isNull(node))
636 return node->get();
637 }
638 return nullptr;
639}
640
641Track *TrackList::GetPrev(Track &t, bool linked) const
642{

Calls 5

isNullFunction · 0.85
getNextFunction · 0.85
GetNodeMethod · 0.80
HasLinkedTrackMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected