21.02
|
Blob memory pool. More...
#include <BlobMemoryPool.h>
Public Member Functions | |
BlobMemoryPool (IAllocator *allocator, std::vector< BlobInfo > blob_info) | |
Default Constructor. More... | |
~BlobMemoryPool () | |
Default Destructor. More... | |
BlobMemoryPool (const BlobMemoryPool &)=delete | |
Prevent instances of this class to be copy constructed. More... | |
BlobMemoryPool & | operator= (const BlobMemoryPool &)=delete |
Prevent instances of this class to be copy assigned. More... | |
BlobMemoryPool (BlobMemoryPool &&)=default | |
Allow instances of this class to be move constructed. More... | |
BlobMemoryPool & | operator= (BlobMemoryPool &&)=default |
Allow instances of this class to be move assigned. More... | |
void | acquire (MemoryMappings &handles) override |
Sets occupant to the memory pool. More... | |
void | release (MemoryMappings &handles) override |
Releases a memory block. More... | |
MappingType | mapping_type () const override |
Returns the mapping types that this pool accepts. More... | |
std::unique_ptr< IMemoryPool > | duplicate () override |
Duplicates the existing memory pool. More... | |
Public Member Functions inherited from IMemoryPool | |
virtual | ~IMemoryPool ()=default |
Default Virtual Destructor. More... | |
Blob memory pool.
Definition at line 42 of file BlobMemoryPool.h.
BlobMemoryPool | ( | IAllocator * | allocator, |
std::vector< BlobInfo > | blob_info | ||
) |
Default Constructor.
[in] | allocator | Backing memory allocator |
[in] | blob_info | Configuration information of the blobs to be allocated |
Definition at line 35 of file BlobMemoryPool.cpp.
References ARM_COMPUTE_ERROR_ON.
~BlobMemoryPool | ( | ) |
Default Destructor.
Definition at line 42 of file BlobMemoryPool.cpp.
References ARM_COMPUTE_ERROR_ON.
|
delete |
Prevent instances of this class to be copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
overridevirtual |
Sets occupant to the memory pool.
[in] | handles | A vector of pairs (handle, index) |
Implements IMemoryPool.
Definition at line 48 of file BlobMemoryPool.cpp.
References ARM_COMPUTE_ERROR_ON.
|
overridevirtual |
Duplicates the existing memory pool.
Implements IMemoryPool.
Definition at line 72 of file BlobMemoryPool.cpp.
References ARM_COMPUTE_ERROR_ON, and IAllocator::make_region().
|
overridevirtual |
Returns the mapping types that this pool accepts.
Implements IMemoryPool.
Definition at line 67 of file BlobMemoryPool.cpp.
References arm_compute::BLOBS.
|
delete |
Prevent instances of this class to be copy assigned.
|
default |
Allow instances of this class to be move assigned.
|
overridevirtual |
Releases a memory block.
[in] | handles | A vector containing a pair of handles and indices |
Implements IMemoryPool.
Definition at line 58 of file BlobMemoryPool.cpp.
References ARM_COMPUTE_ERROR_ON.