24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_BLOBMEMORYPOOL_H
25 #define ARM_COMPUTE_BLOBMEMORYPOOL_H
67 std::unique_ptr<IMemoryPool>
duplicate()
override;
74 void allocate_blobs(
const std::vector<BlobInfo> &blob_info);
80 std::vector<std::unique_ptr<IMemoryRegion>> _blobs;
81 std::vector<BlobInfo> _blob_info;
BlobMemoryPool(IAllocator *allocator, std::vector< BlobInfo > blob_info)
Default Constructor.
BlobMemoryPool & operator=(const BlobMemoryPool &)=delete
Prevent instances of this class to be copy assigned.
void release(MemoryMappings &handles) override
Releases a memory block.
~BlobMemoryPool()
Default Destructor.
MappingType mapping_type() const override
Returns the mapping types that this pool accepts.
void acquire(MemoryMappings &handles) override
Sets occupant to the memory pool.
Copyright (c) 2017-2024 Arm Limited.
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...
std::unique_ptr< IMemoryPool > duplicate() override
Duplicates the existing memory pool.
input allocator() -> allocate()