Class Allocator

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class Allocator : public nvcv::CoreResource<NVCVAllocatorHandle, Allocator>

Represents a reference to an allocator object.

The allocator object defines functions for allocating various resources, including different kinds of memory.

A custom allocator can be created via nvcv::CustomAllocator helper class.

Subclassed by nvcv::CustomAllocator< ResourceAllocators >

Public Functions

inline HostMemAllocator hostMem() const
inline HostPinnedMemAllocator hostPinnedMem() const
inline CudaMemAllocator cudaMem() const
inline ResourceAllocator get(NVCVResourceType resType) const
template<typename ResAlloc>
ResAlloc get() const