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

Function VisitItem

libraries/lib-registries/Registry.cpp:678–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676 path.pop_back();
677}
678void VisitItem(
679 VisitorBase &visitor, CollectedItems &collection,
680 Path &path, const BaseItem *pItem,
681 const GroupItemBase *pToMerge, const OrderingHint &hint,
682 bool &doFlush, void *pComputedItemContext)
683{
684 if (!pItem)
685 return;
686
687 if (const auto pSingle =
688 dynamic_cast<const SingleItem*>(pItem)) {
689 wxASSERT( !pToMerge );
690 visitor.Visit( *pSingle, path );
691 }
692 else
693 if (const auto pGroup =
694 dynamic_cast<const GroupItemBase*>(pItem)) {
695 visitor.BeginGroup(*pGroup, path);
696 // recursion
697 VisitItems(
698 visitor, collection, path, *pGroup, pToMerge, hint, doFlush,
699 pComputedItemContext);
700 visitor.EndGroup(*pGroup, path);
701 }
702 else
703 wxASSERT( false );
704}
705
706}
707

Callers 2

VisitItemsFunction · 0.85
VisitMethod · 0.85

Calls 4

VisitItemsFunction · 0.70
VisitMethod · 0.45
BeginGroupMethod · 0.45
EndGroupMethod · 0.45

Tested by

no test coverage detected