24 #ifndef __ARM_COMPUTE_BLOBMEMORYPOOL_H__
25 #define __ARM_COMPUTE_BLOBMEMORYPOOL_H__
66 std::unique_ptr<IMemoryPool>
duplicate()
override;
73 void allocate_blobs(
const std::vector<size_t> &sizes);
79 std::vector<void *> _blobs;
80 std::vector<size_t> _blob_sizes;
MappingType mapping_type() const override
Returns the mapping types that this pool accepts.
~BlobMemoryPool()
Default Destructor.
void acquire(MemoryMappings &handles) override
Sets occupant to the memory pool.
BlobMemoryPool(IAllocator *allocator, std::vector< size_t > blob_sizes)
Default Constructor.
std::unique_ptr< IMemoryPool > duplicate() override
Duplicates the existing memory pool.
void release(MemoryMappings &handles) override
Releases a memory block.
std::map< void **, size_t > MemoryMappings
A map of (handle, index/offset), where handle is the memory handle of the object to provide the memor...
BlobMemoryPool & operator=(const BlobMemoryPool &)=delete
Prevent instances of this class to be copy assigned.