1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Improvements and comments in visitation and merging of registry items

This commit is contained in:
Paul Licameli
2020-01-31 13:41:43 -05:00
parent 6da68f2035
commit d233cbd881
2 changed files with 261 additions and 108 deletions

View File

@@ -588,7 +588,8 @@ namespace Registry {
// Concrete subclass of GroupItem that adds nothing else
// TransparentGroupItem with an empty name is transparent to item path calculations
// and propagates its ordering hint if subordinates don't specify hints
// and propagates its ordering hint if subordinates don't specify hints
// and it does specify one
template< typename VisitorType = ComputedItem::DefaultVisitor >
struct TransparentGroupItem final : ConcreteGroupItem< true, VisitorType >
{
@@ -612,6 +613,9 @@ namespace Registry {
// registry collects items, before consulting preferences and ordering
// hints, and applying the merge procedure to them.
// This function puts one more item into the registry.
// The sequence of calls to RegisterItem has no significance for
// determining the visitation ordering. When sequence is important, register
// a GroupItem.
void RegisterItem( GroupItem &registry, const Placement &placement,
BaseItemPtr pItem );