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

#include <sycl/accessor.hpp>

Public Member Functions

 AccessorSubscript (AccType Accessor, id< Dims > IDs)
 
 AccessorSubscript (AccType Accessor, size_t Index)
 
template<int CurDims = SubDims, typename = std::enable_if_t<(CurDims > 1)>>
auto operator[] (size_t Index)
 
template<int CurDims = SubDims, typename = std::enable_if_t<CurDims == 1 && IsAccessAnyWrite>>
RefType operator[] (size_t Index) const
 
template<int CurDims = SubDims>
std::enable_if_t< CurDims==1 &&IsAccessAtomic, atomic< DataT, AS > > operator[] (size_t Index) const
 
template<int CurDims = SubDims, typename = std::enable_if_t<CurDims == 1 && IsAccessReadOnly>>
ConstRefType operator[] (size_t Index) const
 

Detailed Description

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

Definition at line 333 of file accessor.hpp.

Constructor & Destructor Documentation

◆ AccessorSubscript() [1/2]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::AccessorSubscript ( AccType  Accessor,
id< Dims >  IDs 
)
inline

Definition at line 340 of file accessor.hpp.

◆ AccessorSubscript() [2/2]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::AccessorSubscript ( AccType  Accessor,
size_t  Index 
)
inline

Definition at line 345 of file accessor.hpp.

Member Function Documentation

◆ operator[]() [1/4]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
template<int CurDims = SubDims, typename = std::enable_if_t<(CurDims > 1)>>
auto sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::operator[] ( size_t  Index)
inline

Definition at line 350 of file accessor.hpp.

◆ operator[]() [2/4]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
template<int CurDims = SubDims, typename = std::enable_if_t<CurDims == 1 && IsAccessAnyWrite>>
RefType sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::operator[] ( size_t  Index) const
inline

Definition at line 357 of file accessor.hpp.

◆ operator[]() [3/4]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
template<int CurDims = SubDims>
std::enable_if_t<CurDims == 1 && IsAccessAtomic, atomic<DataT, AS> > sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::operator[] ( size_t  Index) const
inline

Definition at line 364 of file accessor.hpp.

◆ operator[]() [4/4]

template<typename DataT , int Dimensions, access::mode AccessMode, access::target AccessTarget, access::placeholder IsPlaceholder, typename PropertyListT = ext::oneapi::accessor_property_list<>>
template<int SubDims, typename AccType = accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT>>
template<int CurDims = SubDims, typename = std::enable_if_t<CurDims == 1 && IsAccessReadOnly>>
ConstRefType sycl::_V1::detail::accessor_common< DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder, PropertyListT >::AccessorSubscript< SubDims, AccType >::operator[] ( size_t  Index) const
inline

Definition at line 371 of file accessor.hpp.


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