Audacity 3.2.0
|
#include <Registry.h>
Public Types | |
using | ItemType = Item |
Public Types inherited from Registry::detail::ComputedItemBase | |
using | TypeErasedFactory = std::function< BaseItemSharedPtr(void *)> |
Public Member Functions | |
template<typename Factory > | |
ComputedItem (const Factory &factory) | |
Type-erasing constructor template. More... | |
Public Member Functions inherited from Registry::detail::ComputedItemBase | |
ComputedItemBase (const TypeErasedFactory &factory) | |
~ComputedItemBase () override | |
Public Member Functions inherited from Registry::detail::BaseItem | |
BaseItem (const Identifier &internalName) | |
virtual | ~BaseItem () |
Additional Inherited Members | |
Public Attributes inherited from Registry::detail::ComputedItemBase | |
TypeErasedFactory | factory |
Public Attributes inherited from Registry::detail::BaseItem | |
const Identifier | name |
OrderingHint | orderingHint |
An item that computes some other item to substitute for it, each time it is visited
The name of the substitute is significant for path calculations, but the ComputedItem's ordering hint is used if the substitute has none
Definition at line 201 of file Registry.h.
using Registry::detail::ComputedItem< Context, Item >::ItemType = Item |
Definition at line 202 of file Registry.h.
|
inline |
Type-erasing constructor template.
Return type of the factory may be shared_ptr or unique_ptr. The result is converted to shared_ptr. This lets the function decide whether to recycle the object or rebuild it on demand each time. Return value from the factory may be null.
Definition at line 212 of file Registry.h.