DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode > Class Template Reference

#include <sycl/accessor.hpp>

Inheritance diagram for sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >:
Collaboration diagram for sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >:

Classes

struct  IsSameAsBuffer
 

Public Member Functions

 host_accessor ()
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = typename std::enable_if_t< std::is_same<T, DataT>::value && Dims == 0>>
 host_accessor (buffer< T, 1, AllocatorT > &BufferRef, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< T, Dims, AllocatorT > &BufferRef, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< T, Dims, AllocatorT > &BufferRef, handler &CommandGroupHandler, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< DataT, Dimensions, AllocatorT > &BufferRef, range< Dimensions > AccessRange, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< DataT, Dimensions, AllocatorT > &BufferRef, handler &CommandGroupHandler, range< Dimensions > AccessRange, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< DataT, Dimensions, AllocatorT > &BufferRef, range< Dimensions > AccessRange, id< Dimensions > AccessOffset, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
 host_accessor (buffer< DataT, Dimensions, AllocatorT > &BufferRef, handler &CommandGroupHandler, range< Dimensions > AccessRange, id< Dimensions > AccessOffset, const property_list &PropertyList={}, const detail::code_location CodeLoc=detail::code_location::current())
 
- Public Member Functions inherited from sycl::_V1::detail::OwnerLessBase< host_accessor< DataT, 1, access_mode::read_write > >
bool ext_oneapi_owner_before (const ext::oneapi::detail::weak_object_base< host_accessor< DataT, 1, access_mode::read_write > > &Other) const noexcept
 Compares the object against a weak object using an owner-based implementation-defined ordering. More...
 
bool ext_oneapi_owner_before (const host_accessor< DataT, 1, access_mode::read_write > &Other) const noexcept
 Compares the object against another object using an owner-based implementation-defined ordering. More...
 

Protected Types

using AccessorT = accessor< DataT, Dimensions, AccessMode, target::host_buffer, access::placeholder::false_t >
 

Protected Member Functions

void __init (typename accessor< DataT, Dimensions, AccessMode, target::host_buffer, access::placeholder::false_t >::ConcreteASPtrType Ptr, range< AdjustedDim > AccessRange, range< AdjustedDim > MemRange, id< AdjustedDim > Offset)
 

Static Protected Attributes

constexpr static int AdjustedDim = Dimensions == 0 ? 1 : Dimensions
 

Detailed Description

template<typename DataT, int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
class sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >

Definition at line 2939 of file accessor.hpp.

Member Typedef Documentation

◆ AccessorT

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
using sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::AccessorT = accessor<DataT, Dimensions, AccessMode, target::host_buffer, access::placeholder::false_t>
protected

Definition at line 2945 of file accessor.hpp.

Constructor & Destructor Documentation

◆ host_accessor() [1/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( )
inline

Definition at line 2964 of file accessor.hpp.

◆ host_accessor() [2/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = typename std::enable_if_t< std::is_same<T, DataT>::value && Dims == 0>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< T, 1, AllocatorT > &  BufferRef,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 2992 of file accessor.hpp.

◆ host_accessor() [3/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< T, Dims, AllocatorT > &  BufferRef,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3000 of file accessor.hpp.

◆ host_accessor() [4/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< T, Dims, AllocatorT > &  BufferRef,
handler CommandGroupHandler,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3020 of file accessor.hpp.

◆ host_accessor() [5/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< DataT, Dimensions, AllocatorT > &  BufferRef,
range< Dimensions AccessRange,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3041 of file accessor.hpp.

◆ host_accessor() [6/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< DataT, Dimensions, AllocatorT > &  BufferRef,
handler CommandGroupHandler,
range< Dimensions AccessRange,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3062 of file accessor.hpp.

◆ host_accessor() [7/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< DataT, Dimensions, AllocatorT > &  BufferRef,
range< Dimensions AccessRange,
id< Dimensions AccessOffset,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3086 of file accessor.hpp.

◆ host_accessor() [8/8]

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
template<typename T = DataT, int Dims = Dimensions, typename AllocatorT , typename = std::enable_if_t<IsSameAsBuffer<T, Dims>::value>>
sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::host_accessor ( buffer< DataT, Dimensions, AllocatorT > &  BufferRef,
handler CommandGroupHandler,
range< Dimensions AccessRange,
id< Dimensions AccessOffset,
const property_list PropertyList = {},
const detail::code_location  CodeLoc = detail::code_location::current() 
)
inline

Definition at line 3110 of file accessor.hpp.

Member Function Documentation

◆ __init()

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
void sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::__init ( typename accessor< DataT, Dimensions, AccessMode, target::host_buffer, access::placeholder::false_t >::ConcreteASPtrType  Ptr,
range< AdjustedDim AccessRange,
range< AdjustedDim MemRange,
id< AdjustedDim Offset 
)
inlineprotected

Definition at line 2956 of file accessor.hpp.

Member Data Documentation

◆ AdjustedDim

template<typename DataT , int Dimensions = 1, access_mode AccessMode = access_mode::read_write>
constexpr static int sycl::_V1::host_accessor< DataT, Dimensions, AccessMode >::AdjustedDim = Dimensions == 0 ? 1 : Dimensions
staticconstexprprotected

Definition at line 2948 of file accessor.hpp.


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