21.02
|
On-demand memory manager. More...
#include <MemoryManagerOnDemand.h>
Public Member Functions | |
MemoryManagerOnDemand (std::shared_ptr< ILifetimeManager > lifetime_manager, std::shared_ptr< IPoolManager > pool_manager) | |
Default Constructor. More... | |
MemoryManagerOnDemand (const MemoryManagerOnDemand &)=delete | |
Prevent instances of this class to be copy constructed. More... | |
MemoryManagerOnDemand & | operator= (const MemoryManagerOnDemand &)=delete |
Prevent instances of this class to be copied. More... | |
MemoryManagerOnDemand (MemoryManagerOnDemand &&)=default | |
Allow instances of this class to be move constructed. More... | |
MemoryManagerOnDemand & | operator= (MemoryManagerOnDemand &&)=default |
Allow instances of this class to be moved. More... | |
ILifetimeManager * | lifetime_manager () override |
Returns the lifetime manager used by the memory manager. More... | |
IPoolManager * | pool_manager () override |
Returns the pool manager used by the memory manager. More... | |
void | populate (IAllocator &allocator, size_t num_pools) override |
Populates the pool manager with the given number of pools. More... | |
void | clear () override |
Clears the pool manager. More... | |
Public Member Functions inherited from IMemoryManager | |
virtual | ~IMemoryManager ()=default |
Default virtual destructor. More... | |
On-demand memory manager.
Definition at line 38 of file MemoryManagerOnDemand.h.
MemoryManagerOnDemand | ( | std::shared_ptr< ILifetimeManager > | lifetime_manager, |
std::shared_ptr< IPoolManager > | pool_manager | ||
) |
Default Constructor.
Definition at line 34 of file MemoryManagerOnDemand.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
delete |
Prevent instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Clears the pool manager.
Implements IMemoryManager.
Definition at line 68 of file MemoryManagerOnDemand.cpp.
References ARM_COMPUTE_ERROR_ON_MSG.
|
overridevirtual |
Returns the lifetime manager used by the memory manager.
Implements IMemoryManager.
Definition at line 41 of file MemoryManagerOnDemand.cpp.
|
delete |
Prevent instances of this class to be copied.
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Returns the pool manager used by the memory manager.
Implements IMemoryManager.
Definition at line 46 of file MemoryManagerOnDemand.cpp.
|
overridevirtual |
Populates the pool manager with the given number of pools.
[in] | allocator | Allocator to use for the backing allocations |
[in] | num_pools | Number of pools to create |
Implements IMemoryManager.
Definition at line 51 of file MemoryManagerOnDemand.cpp.
References ARM_COMPUTE_ERROR_ON, and ARM_COMPUTE_ERROR_ON_MSG.