21.02
|
GLES implementation of memory object. More...
#include <GCMemory.h>
Public Member Functions | |
GCMemory () | |
Default Constructor. More... | |
GCMemory (const std::shared_ptr< IGCMemoryRegion > &memory) | |
Default Constructor. More... | |
GCMemory (IGCMemoryRegion *memory) | |
Default Constructor. More... | |
GCMemory (const GCMemory &)=default | |
Allow instances of this class to be copied. More... | |
GCMemory & | operator= (const GCMemory &)=default |
Allow instances of this class to be copy assigned. More... | |
GCMemory (GCMemory &&) noexcept=default | |
Allow instances of this class to be moved. More... | |
GCMemory & | operator= (GCMemory &&) noexcept=default |
Allow instances of this class to be move assigned. More... | |
IGCMemoryRegion * | gc_region () |
GLES Region accessor. More... | |
IGCMemoryRegion * | gc_region () const |
GLES Region accessor. More... | |
IMemoryRegion * | region () final |
Region accessor. More... | |
IMemoryRegion * | region () const final |
Region accessor. More... | |
void | set_region (IMemoryRegion *region) final |
Sets a memory region. More... | |
void | set_owned_region (std::unique_ptr< IMemoryRegion > region) final |
Sets a memory region. More... | |
Public Member Functions inherited from IMemory | |
virtual | ~IMemory ()=default |
Virtual default destructor. More... | |
GLES implementation of memory object.
Definition at line 37 of file GCMemory.h.
GCMemory | ( | ) |
Default Constructor.
Definition at line 31 of file GCMemory.cpp.
GCMemory | ( | const std::shared_ptr< IGCMemoryRegion > & | memory | ) |
Default Constructor.
[in] | memory | Memory to be imported |
Definition at line 36 of file GCMemory.cpp.
GCMemory | ( | IGCMemoryRegion * | memory | ) |
Default Constructor.
[in] | memory | Memory to be imported |
Definition at line 43 of file GCMemory.cpp.
IGCMemoryRegion * gc_region | ( | ) |
GLES Region accessor.
Definition at line 49 of file GCMemory.cpp.
Referenced by GCTensorAllocator::get_gl_ssbo_name(), GCTensorAllocator::map(), GCTensorAllocator::set_associated_memory_group(), GCMemory::set_region(), and GCTensorAllocator::unmap().
IGCMemoryRegion * gc_region | ( | ) | const |
Allow instances of this class to be move assigned.
|
finalvirtual |
Region accessor.
Implements IMemory.
Definition at line 59 of file GCMemory.cpp.
Referenced by GCTensorAllocator::get_gl_ssbo_name(), GCTensorAllocator::map(), GCTensorAllocator::set_associated_memory_group(), GCMemory::set_region(), and GCTensorAllocator::unmap().
|
finalvirtual |
Region accessor.
Implements IMemory.
Definition at line 64 of file GCMemory.cpp.
|
finalvirtual |
Sets a memory region.
region | Memory region |
Implements IMemory.
Definition at line 76 of file GCMemory.cpp.
Referenced by GCTensorAllocator::allocate().
|
finalvirtual |
Sets a memory region.
region | Memory region |
Implements IMemory.
Definition at line 69 of file GCMemory.cpp.
References GCMemory::gc_region(), and GCMemory::region().
Referenced by GCTensorAllocator::free().