DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT > Class Template Reference

#include <CL/sycl/accessor.hpp>

Collaboration diagram for cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >:

Classes

class  AccessorSubscript
 

Protected Types

using RefType = detail::const_if_const_AS< AS, DataT > &
 
using ConstRefType = const DataT &
 
using PtrType = detail::const_if_const_AS< AS, DataT > *
 
using AccType = accessor< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >
 

Static Protected Attributes

constexpr static bool IsPlaceH = IsPlaceholder == access::placeholder::true_t
 
constexpr static access::address_space AS = TargetToAS<AccessTarget>::AS
 
constexpr static bool IsHostBuf = AccessTarget == access::target::host_buffer
 
constexpr static bool IsGlobalBuf
 
constexpr static bool IsConstantBuf
 
constexpr static bool IsAccessAnyWrite
 
constexpr static bool IsAccessReadOnly = AccessMode == access::mode::read
 
constexpr static bool IsAccessReadWrite
 
constexpr static bool IsAccessAtomic = AccessMode == access::mode::atomic
 

Detailed Description

template<typename DataT, int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
class cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >

Definition at line 267 of file accessor.hpp.

Member Typedef Documentation

◆ AccType

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
using cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>
protected

Definition at line 301 of file accessor.hpp.

◆ ConstRefType

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
using cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::ConstRefType = const DataT &
protected

Definition at line 297 of file accessor.hpp.

◆ PtrType

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
using cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::PtrType = detail::const_if_const_AS<AS, DataT> *
protected

Definition at line 298 of file accessor.hpp.

◆ RefType

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
using cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::RefType = detail::const_if_const_AS<AS, DataT> &
protected

Definition at line 296 of file accessor.hpp.

Member Data Documentation

◆ AS

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static access::address_space cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AS = TargetToAS<AccessTarget>::AS
staticconstexprprotected

Definition at line 270 of file accessor.hpp.

◆ IsAccessAnyWrite

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessAnyWrite
staticconstexprprotected
Initial value:
=
AccessMode == access::mode::write ||
AccessMode == access::mode::read_write ||
AccessMode == access::mode::discard_write ||

Definition at line 283 of file accessor.hpp.

◆ IsAccessAtomic

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessAtomic = AccessMode == access::mode::atomic
staticconstexprprotected

Definition at line 294 of file accessor.hpp.

◆ IsAccessReadOnly

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessReadOnly = AccessMode == access::mode::read
staticconstexprprotected

Definition at line 289 of file accessor.hpp.

◆ IsAccessReadWrite

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessReadWrite
staticconstexprprotected
Initial value:
=

Definition at line 291 of file accessor.hpp.

◆ IsConstantBuf

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsConstantBuf
staticconstexprprotected
Initial value:

Definition at line 280 of file accessor.hpp.

◆ IsGlobalBuf

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsGlobalBuf
staticconstexprprotected
Initial value:
=
AccessTarget == access::target::global_buffer

Definition at line 277 of file accessor.hpp.

◆ IsHostBuf

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsHostBuf = AccessTarget == access::target::host_buffer
staticconstexprprotected

Definition at line 272 of file accessor.hpp.

◆ IsPlaceH

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr static bool cl::sycl::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsPlaceH = IsPlaceholder == access::placeholder::true_t
staticconstexprprotected

Definition at line 269 of file accessor.hpp.


The documentation for this class was generated from the following file:
cl::sycl::access::mode::discard_read_write
@ discard_read_write
cl::sycl::access::target::constant_buffer
@ constant_buffer
cl::sycl::access::mode::write
@ write
cl::sycl::access::mode::discard_write
@ discard_write
cl::sycl::access::mode::read_write
@ read_write