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

#include <sycl/accessor.hpp>

Collaboration diagram for sycl::_V1::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 > *
 

Static Protected Attributes

constexpr static access::address_space AS = TargetToAS<AccessTarget>::AS
 
constexpr static bool IsHostBuf = AccessTarget == access::target::host_buffer
 
constexpr static bool IsHostTask = AccessTarget == access::target::host_task
 
constexpr static bool IsPlaceH = !IsHostBuf
 
constexpr static bool IsGlobalBuf
 
constexpr static bool IsConstantBuf
 
constexpr static bool IsAccessAnyWrite
 
constexpr static bool IsAccessReadOnly = AccessMode == access::mode::read
 
static constexpr bool IsConst = std::is_const_v<DataT>
 
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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >

Definition at line 312 of file accessor.hpp.

Member Typedef Documentation

◆ ConstRefType

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

Definition at line 354 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::PtrType = detail::const_if_const_AS<AS, DataT> *
protected

Definition at line 355 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::RefType = detail::const_if_const_AS<AS, DataT> &
protected

Definition at line 353 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AS = TargetToAS<AccessTarget>::AS
staticconstexprprotected

Definition at line 314 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessAnyWrite
staticconstexprprotected
Initial value:
=
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS AccessMode
Definition: accessor.hpp:3235

Definition at line 339 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessAtomic = AccessMode == access::mode::atomic
staticconstexprprotected

Definition at line 351 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessReadOnly = AccessMode == access::mode::read
staticconstexprprotected

Definition at line 345 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsAccessReadWrite
staticconstexprprotected
Initial value:

Definition at line 348 of file accessor.hpp.

◆ IsConst

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
constexpr bool sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsConst = std::is_const_v<DataT>
staticconstexprprotected

Definition at line 346 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsConstantBuf
staticconstexprprotected
Initial value:
=
AccessTarget == access::target::constant_buffer

Definition at line 336 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsGlobalBuf
staticconstexprprotected
Initial value:
=
AccessTarget == access::target::global_buffer

Definition at line 333 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsHostBuf = AccessTarget == access::target::host_buffer
staticconstexprprotected

Definition at line 316 of file accessor.hpp.

◆ IsHostTask

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

Definition at line 317 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 sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::IsPlaceH = !IsHostBuf
staticconstexprprotected

Definition at line 328 of file accessor.hpp.


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