Class vl::MemoryResource#
ClassList > vl > MemoryResource
#include <memory.h>
Public Functions#
| Type | Name |
|---|---|
| virtual void * | allocate (size_t bytes, size_t alignment) = 0 |
| virtual void | deallocate (void * ptr, size_t bytes, size_t alignment) = 0 |
| virtual bool | is_equal (const MemoryResource & other) noexcept const = 0 |
| virtual MemoryType | memoryType () const = 0 get the type (location) of the associated memory resource |
Detailed Description#
wrapper class to handle huge chunks of memory (host or gpu type)
Public Functions Documentation#
function allocate#
virtual void * vl::MemoryResource::allocate (
size_t bytes,
size_t alignment
) = 0
function deallocate#
virtual void vl::MemoryResource::deallocate (
void * ptr,
size_t bytes,
size_t alignment
) = 0
function is_equal#
virtual bool vl::MemoryResource::is_equal (
const MemoryResource & other
) noexcept const = 0
function memoryType#
get the type (location) of the associated memory resource
virtual MemoryType vl::MemoryResource::memoryType () const = 0
Returns:
MemoryType
The documentation for this class was generated from the following file docs/libvl/build/2.1.0/doxygen/source/vl/memory.h