Class Allocator
Defined in File Allocator.hpp
Inheritance Relationships
Base Type
public nvcv::CoreResource< NVCVAllocatorHandle, Allocator >
(Template Class CoreResource)
Derived Type
public nvcv::CustomAllocator< ResourceAllocators >
(Template Class CustomAllocator)
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
-
inline HostMemAllocator hostMem() const