11 #include <unordered_map> 17 class IBackendInternal;
FactoryFunction GetFactory(const BackendId &id) const
BackendIdSet GetBackendIds() const
StaticRegistryInitializer(BackendRegistry &instance, const BackendId &id, FactoryFunction factory)
bool IsBackendRegistered(const BackendId &id) const
IBackendInternalUniquePtr PointerType
std::function< PointerType()> FactoryFunction
void Register(const BackendId &id, FactoryFunction factory)
std::unordered_set< BackendId > BackendIdSet
static void Swap(BackendRegistry &instance, FactoryStorage &other)
For testing only.
std::unordered_map< BackendId, FactoryFunction > FactoryStorage
BackendRegistry & BackendRegistryInstance()
Copyright (c) 2020 ARM Limited.
std::string GetBackendIdsAsString() const
virtual ~BackendRegistry()
void Deregister(const BackendId &id)
std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr