DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::SYCLMemObjAllocator Class Referenceabstract

#include <CL/sycl/detail/sycl_mem_obj_allocator.hpp>

Inheritance diagram for cl::sycl::detail::SYCLMemObjAllocator:

Public Member Functions

virtual ~SYCLMemObjAllocator ()=default
 
virtual void * allocate (std::size_t)=0
 
virtual void deallocate (void *, std::size_t)=0
 
virtual std::size_t getValueSize () const =0
 
virtual void setAlignment (std::size_t RequiredAlign)=0
 
template<typename AllocatorT >
AllocatorT getAllocator ()
 

Protected Member Functions

virtual void * getAllocatorImpl ()=0
 

Detailed Description

Definition at line 21 of file sycl_mem_obj_allocator.hpp.

Constructor & Destructor Documentation

◆ ~SYCLMemObjAllocator()

virtual cl::sycl::detail::SYCLMemObjAllocator::~SYCLMemObjAllocator ( )
virtualdefault

Member Function Documentation

◆ allocate()

virtual void* cl::sycl::detail::SYCLMemObjAllocator::allocate ( std::size_t  )
pure virtual

◆ deallocate()

virtual void cl::sycl::detail::SYCLMemObjAllocator::deallocate ( void *  ,
std::size_t   
)
pure virtual

◆ getAllocator()

template<typename AllocatorT >
AllocatorT cl::sycl::detail::SYCLMemObjAllocator::getAllocator ( )
inline

Definition at line 32 of file sycl_mem_obj_allocator.hpp.

◆ getAllocatorImpl()

virtual void* cl::sycl::detail::SYCLMemObjAllocator::getAllocatorImpl ( )
protectedpure virtual

◆ getValueSize()

virtual std::size_t cl::sycl::detail::SYCLMemObjAllocator::getValueSize ( ) const
pure virtual

◆ setAlignment()

virtual void cl::sycl::detail::SYCLMemObjAllocator::setAlignment ( std::size_t  RequiredAlign)
pure virtual

The documentation for this class was generated from the following file: