ArmNN
 20.02
TestBackendRegistry Class Reference

#include <DynamicBackendTests.hpp>

Inheritance diagram for TestBackendRegistry:
BackendRegistry

Public Member Functions

 TestBackendRegistry ()
 
 ~TestBackendRegistry ()
 
- Public Member Functions inherited from BackendRegistry
void Register (const BackendId &id, FactoryFunction factory)
 
bool IsBackendRegistered (const BackendId &id) const
 
FactoryFunction GetFactory (const BackendId &id) const
 
size_t Size () const
 
BackendIdSet GetBackendIds () const
 
std::string GetBackendIdsAsString () const
 
 BackendRegistry ()
 
virtual ~BackendRegistry ()
 
void Deregister (const BackendId &id)
 

Additional Inherited Members

- Public Types inherited from BackendRegistry
using PointerType = IBackendInternalUniquePtr
 
using FactoryFunction = std::function< PointerType()>
 
- Protected Types inherited from BackendRegistry
using FactoryStorage = std::unordered_map< BackendId, FactoryFunction >
 
- Static Protected Member Functions inherited from BackendRegistry
static void Swap (BackendRegistry &instance, FactoryStorage &other)
 For testing only. More...
 

Detailed Description

Definition at line 91 of file DynamicBackendTests.hpp.

Constructor & Destructor Documentation

◆ TestBackendRegistry()

TestBackendRegistry ( )
inline

Definition at line 94 of file DynamicBackendTests.hpp.

References armnn::BackendRegistryInstance().

95  {
96  Swap(armnn::BackendRegistryInstance(), m_TempStorage);
97  }
static void Swap(BackendRegistry &instance, FactoryStorage &other)
For testing only.
BackendRegistry & BackendRegistryInstance()

◆ ~TestBackendRegistry()

~TestBackendRegistry ( )
inline

Definition at line 99 of file DynamicBackendTests.hpp.

References armnn::BackendRegistryInstance().

100  {
101  Swap(armnn::BackendRegistryInstance(), m_TempStorage);
102  }
static void Swap(BackendRegistry &instance, FactoryStorage &other)
For testing only.
BackendRegistry & BackendRegistryInstance()

The documentation for this class was generated from the following file: