24 #ifndef ARM_COMPUTE_BLOBMEMORYPOOL_H 25 #define ARM_COMPUTE_BLOBMEMORYPOOL_H 68 std::unique_ptr<IMemoryPool>
duplicate()
override;
75 void allocate_blobs(
const std::vector<BlobInfo> &blob_info);
81 std::vector<std::unique_ptr<IMemoryRegion>> _blobs;
82 std::vector<BlobInfo> _blob_info;
MappingType mapping_type() const override
Returns the mapping types that this pool accepts.
~BlobMemoryPool()
Default Destructor.
Copyright (c) 2017-2021 Arm Limited.
void acquire(MemoryMappings &handles) override
Sets occupant to the memory pool.
std::unique_ptr< IMemoryPool > duplicate() override
Duplicates the existing memory pool.
input allocator() -> allocate()
std::map< IMemory *, size_t > MemoryMappings
A map of (handle, index/offset), where handle is the memory handle of the object to provide the memor...
BlobMemoryPool(IAllocator *allocator, std::vector< BlobInfo > blob_info)
Default Constructor.
void release(MemoryMappings &handles) override
Releases a memory block.
BlobMemoryPool & operator=(const BlobMemoryPool &)=delete
Prevent instances of this class to be copy assigned.