Audacity 3.2.0
|
#include <Registry.h>
Public Types | |
using | NodeTypes = detail::VisitedNodeTypes< RegistryTraits > |
using | LeafTypes = detail::VisitedLeafTypes< RegistryTraits > |
Public Member Functions | |
template<typename Visitors > | |
VisitorFunctions (Visitors &&visitors) | |
Type-erasing constructor. More... | |
void | BeginGroup (const GroupItem< RegistryTraits > &item, const Path &path) const |
Call-through for a decorating pre-visitor. More... | |
void | Visit (const SingleItem &item, const Path &path) const |
Call-through for a decorating leaf-visitor. More... | |
void | EndGroup (const GroupItem< RegistryTraits > &item, const Path &path) const |
Call-through for a decorating post-visitor. More... | |
Adapt visitors, suitable to Visit(), as a std::function or a tuple of three std::functions, which other visitors may decorate with other steps
Reference | if true, capture visitors by reference; else, move them |
Definition at line 476 of file Registry.h.
using Registry::VisitorFunctions< RegistryTraits, Reference >::LeafTypes = detail::VisitedLeafTypes<RegistryTraits> |
Definition at line 481 of file Registry.h.
using Registry::VisitorFunctions< RegistryTraits, Reference >::NodeTypes = detail::VisitedNodeTypes<RegistryTraits> |
Definition at line 480 of file Registry.h.
|
inline |
Type-erasing constructor.
visitors | one callable, for leaves only; or else a tuple(-like) of three callables (or type-switching tuples of callables), for group pre-visit, leaf visit, and group post-visit |
Definition at line 489 of file Registry.h.
References size.
|
inline |
Call-through for a decorating pre-visitor.
Definition at line 505 of file Registry.h.
Referenced by MenuRegistry::Visitor< MenuTraits >::Visitor().
|
inline |
Call-through for a decorating post-visitor.
Definition at line 522 of file Registry.h.
Referenced by MenuRegistry::Visitor< MenuTraits >::Visitor().
|
inline |
Call-through for a decorating leaf-visitor.
Definition at line 511 of file Registry.h.
References fn, and Variant::Visit().
Referenced by MenuRegistry::Visitor< MenuTraits >::Visitor().