Skip to content

Class vl::MemoryResource#

ClassList > vl > MemoryResource

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
virtual MemoryResourceImpl * resource () const = 0

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#

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

function resource#

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


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