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

Method valid

libraries/lib-track/Track.h:658–665  ·  view source on GitHub ↗

Test satisfaction of the invariant, while initializing, incrementing, or decrementing

Source from the content-addressed store, hash-verified

656
657 //! Test satisfaction of the invariant, while initializing, incrementing, or decrementing
658 bool valid() const
659 {
660 // assume mIter != mEnd
661 const auto pTrack = track_cast< TrackType * >( &**this->mIter );
662 if (!pTrack)
663 return false;
664 return !this->mPred || this->mPred( pTrack );
665 }
666
667 //! This friendship is needed in TrackIterRange::StartingWith and TrackIterRange::EndingAfter()
668 friend TrackIterRange< TrackType >;

Callers 4

TrackIterMethod · 0.95
TrackIterClass · 0.95
OnAppClosingMethod · 0.80
ShowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected