24 #ifndef ARM_COMPUTE_IMEMORYPOOL_H 25 #define ARM_COMPUTE_IMEMORYPOOL_H 61 virtual std::unique_ptr<IMemoryPool>
duplicate() = 0;
virtual MappingType mapping_type() const =0
Returns the mapping types that this pool accepts.
virtual ~IMemoryPool()=default
Default Virtual Destructor.
virtual void acquire(MemoryMappings &handles)=0
Sets occupant to the memory pool.
Copyright (c) 2017-2021 Arm Limited.
virtual void release(MemoryMappings &handles)=0
Releases a memory block.
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...
virtual std::unique_ptr< IMemoryPool > duplicate()=0
Duplicates the existing memory pool.