DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT > Class Template Reference

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

Inheritance diagram for cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >:
Collaboration diagram for cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >:

Public Member Functions

 SYCLMemObjAllocatorHolder (AllocatorT Allocator)
 
 SYCLMemObjAllocatorHolder ()
 
 ~SYCLMemObjAllocatorHolder ()=default
 
virtual void * allocate (std::size_t Count) override
 
virtual void deallocate (void *Ptr, std::size_t Count) override
 
void setAlignment (std::size_t RequiredAlign) override
 
virtual std::size_t getValueSize () const override
 
- Public Member Functions inherited from cl::sycl::detail::SYCLMemObjAllocator
virtual ~SYCLMemObjAllocator ()=default
 
template<typename AllocatorT >
AllocatorT getAllocator ()
 

Protected Member Functions

virtual void * getAllocatorImpl () override
 

Detailed Description

template<typename AllocatorT, typename OwnerDataT>
class cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >

Definition at line 38 of file sycl_mem_obj_allocator.hpp.

Constructor & Destructor Documentation

◆ SYCLMemObjAllocatorHolder() [1/2]

template<typename AllocatorT , typename OwnerDataT >
cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::SYCLMemObjAllocatorHolder ( AllocatorT  Allocator)
inline

Definition at line 40 of file sycl_mem_obj_allocator.hpp.

◆ SYCLMemObjAllocatorHolder() [2/2]

template<typename AllocatorT , typename OwnerDataT >
cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::SYCLMemObjAllocatorHolder ( )
inline

Definition at line 44 of file sycl_mem_obj_allocator.hpp.

◆ ~SYCLMemObjAllocatorHolder()

template<typename AllocatorT , typename OwnerDataT >
cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::~SYCLMemObjAllocatorHolder ( )
default

Member Function Documentation

◆ allocate()

template<typename AllocatorT , typename OwnerDataT >
virtual void* cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::allocate ( std::size_t  Count)
inlineoverridevirtual

Implements cl::sycl::detail::SYCLMemObjAllocator.

Definition at line 50 of file sycl_mem_obj_allocator.hpp.

◆ deallocate()

template<typename AllocatorT , typename OwnerDataT >
virtual void cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::deallocate ( void *  Ptr,
std::size_t  Count 
)
inlineoverridevirtual

Implements cl::sycl::detail::SYCLMemObjAllocator.

Definition at line 54 of file sycl_mem_obj_allocator.hpp.

◆ getAllocatorImpl()

template<typename AllocatorT , typename OwnerDataT >
virtual void* cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::getAllocatorImpl ( )
inlineoverrideprotectedvirtual

Implements cl::sycl::detail::SYCLMemObjAllocator.

Definition at line 66 of file sycl_mem_obj_allocator.hpp.

◆ getValueSize()

template<typename AllocatorT , typename OwnerDataT >
virtual std::size_t cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::getValueSize ( ) const
inlineoverridevirtual

Implements cl::sycl::detail::SYCLMemObjAllocator.

Definition at line 63 of file sycl_mem_obj_allocator.hpp.

◆ setAlignment()

template<typename AllocatorT , typename OwnerDataT >
void cl::sycl::detail::SYCLMemObjAllocatorHolder< AllocatorT, OwnerDataT >::setAlignment ( std::size_t  RequiredAlign)
inlineoverridevirtual

Implements cl::sycl::detail::SYCLMemObjAllocator.

Definition at line 59 of file sycl_mem_obj_allocator.hpp.


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