Skip to content

Class vl::MemoryResource#

ClassList > vl > MemoryResource

More...

  • #include <memory.h>

Inherited by the following classes: vl::CudaMemoryResource, vl::HostMemoryResource

Public Functions#

Type Name
void * allocate (size_t bytes, size_t alignment)
void deallocate (void * ptr, size_t bytes, size_t alignment)
bool is_equal (const MemoryResource & other) noexcept const
virtual MemoryType memoryType () const = 0
get the type (location) of the associated memory resource
virtual MemoryResourceImpl * resource () const = 0
get the actual memory handler implementation

Detailed Description#

wrapper class to handle huge chunks of memory (host or gpu type)

Public Functions Documentation#

function allocate#

void * vl::MemoryResource::allocate (
    size_t bytes,
    size_t alignment
) 

function deallocate#

void vl::MemoryResource::deallocate (
    void * ptr,
    size_t bytes,
    size_t alignment
) 

function is_equal#

bool vl::MemoryResource::is_equal (
    const  MemoryResource & other
) noexcept const

function memoryType#

get the type (location) of the associated memory resource

virtual MemoryType vl::MemoryResource::memoryType () const = 0

Returns:

MemoryType


function resource#

get the actual memory handler implementation

virtual MemoryResourceImpl * vl::MemoryResource::resource () const = 0

Returns:

MemoryResourceImpl



The documentation for this class was generated from the following file docs/libvl/build/1.6.1/doxygen/source/vl/memory.h