23.05
|
#include <IMemoryPool.h>
Public Member Functions | |
virtual | ~IMemoryPool ()=default |
Default Virtual Destructor. More... | |
virtual void | acquire (MemoryMappings &handles)=0 |
Sets occupant to the memory pool. More... | |
virtual void | release (MemoryMappings &handles)=0 |
Releases a memory block. More... | |
virtual MappingType | mapping_type () const =0 |
Returns the mapping types that this pool accepts. More... | |
virtual std::unique_ptr< IMemoryPool > | duplicate ()=0 |
Duplicates the existing memory pool. More... | |
Memory Pool Inteface.
Definition at line 37 of file IMemoryPool.h.
|
virtualdefault |
Default Virtual Destructor.
|
pure virtual |
Sets occupant to the memory pool.
[in] | handles | A vector of pairs (handle, index) |
Implemented in OffsetMemoryPool, and BlobMemoryPool.
|
pure virtual |
Duplicates the existing memory pool.
Implemented in OffsetMemoryPool, and BlobMemoryPool.
|
pure virtual |
Returns the mapping types that this pool accepts.
Implemented in OffsetMemoryPool, and BlobMemoryPool.
|
pure virtual |
Releases a memory block.
[in] | handles | A vector containing a pair of handles and indices |
Implemented in OffsetMemoryPool, and BlobMemoryPool.
Referenced by MemoryGroup::release().