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

Method Visit

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

Source from the content-addressed store, hash-verified

723VisitorBase::~VisitorBase() = default;
724
725void detail::Visit(VisitorBase &visitor,
726 const GroupItemBase *pTopItem,
727 const GroupItemBase *pRegistry, void *pComputedItemContext)
728{
729 assert(pComputedItemContext);
730 std::vector< BaseItemSharedPtr > computedItems;
731 bool doFlush = false;
732 CollectedItems collection{ {}, computedItems };
733 Path emptyPath;
734 VisitItem(
735 visitor, collection, emptyPath, pTopItem,
736 pRegistry, pRegistry ? pRegistry->orderingHint : OrderingHint(), doFlush, pComputedItemContext);
737 // Flush any writes done by MergeItems()
738 if (doFlush)
739 gPrefs->Flush();
740}
741
742OrderingPreferenceInitializer::OrderingPreferenceInitializer(
743 Literal root, Pairs pairs )

Callers 3

VisitItemFunction · 0.45
VisitGroupFunction · 0.45
VisitAllFunction · 0.45

Calls 3

VisitItemFunction · 0.85
OrderingHintClass · 0.85
FlushMethod · 0.45

Tested by

no test coverage detected