Compute Library
18.05
|
#include <CLTensorAllocator.h>
Public Member Functions | |
MemoryGroupBase (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Default Constructor. More... | |
~MemoryGroupBase ()=default | |
Default destructor. More... | |
MemoryGroupBase (const MemoryGroupBase &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
MemoryGroupBase & | operator= (const MemoryGroupBase &)=delete |
Prevent instances of this class from being copy assigned (As this class contains pointers) More... | |
MemoryGroupBase (MemoryGroupBase &&)=default | |
Allow instances of this class to be moved. More... | |
MemoryGroupBase & | operator= (MemoryGroupBase &&)=default |
Allow instances of this class to be moved. More... | |
void | manage (TensorType *obj) |
Sets a object to be managed by the given memory group. More... | |
void | finalize_memory (TensorType *obj, void **handle, size_t size) |
Finalizes memory for a given object. More... | |
void | acquire () override |
Acquires backing memory for the whole group. More... | |
void | release () override |
Releases backing memory of the whole group. More... | |
MemoryMappings & | mappings () override |
Gets the memory mapping of the group. More... | |
Public Member Functions inherited from IMemoryGroup | |
virtual | ~IMemoryGroup ()=default |
Default virtual destructor. More... | |
Memory group.
Definition at line 38 of file CLTensorAllocator.h.
|
inline |
Default Constructor.
Definition at line 87 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR_ON.
|
default |
Default destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
inlineoverridevirtual |
Acquires backing memory for the whole group.
Implements IMemoryGroup.
Definition at line 128 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR_ON.
|
inline |
Finalizes memory for a given object.
[in] | obj | Object to request memory for |
[in] | handle | Handle to store the memory |
[in] | size | Size of memory to allocate |
Definition at line 115 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR_ON.
|
inline |
Sets a object to be managed by the given memory group.
[in] | obj | Object to be managed |
Definition at line 97 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR_ON.
|
inlineoverridevirtual |
Gets the memory mapping of the group.
Implements IMemoryGroup.
Definition at line 152 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR.
|
delete |
Prevent instances of this class from being copy assigned (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
inlineoverridevirtual |
Releases backing memory of the whole group.
Implements IMemoryGroup.
Definition at line 139 of file MemoryGroupBase.h.
References ARM_COMPUTE_ERROR_ON, and IMemoryPool::release().