Identifies an instance of the function object executing at each point in a range. More...
#include <sycl/item.hpp>
Public Member Functions | |
item ()=delete | |
id< Dimensions > | get_id () const |
size_t __SYCL_ALWAYS_INLINE | get_id (int Dimension) const |
size_t __SYCL_ALWAYS_INLINE | operator[] (int Dimension) const |
range< Dimensions > | get_range () const |
size_t __SYCL_ALWAYS_INLINE | get_range (int Dimension) const |
operator EnableIfT< Dimensions==1, std::size_t > () const | |
template<bool has_offset = with_offset> | |
std::enable_if_t< has_offset, id< Dimensions > > | get_offset () const |
template<bool has_offset = with_offset> | |
std::enable_if_t< has_offset, size_t > __SYCL_ALWAYS_INLINE | get_offset (int Dimension) const |
template<bool has_offset = with_offset> | |
operator std::enable_if_t<!has_offset, item< Dimensions, true >> () const | |
size_t __SYCL_ALWAYS_INLINE | get_linear_id () const |
item (const item &rhs)=default | |
item (item< Dimensions, with_offset > &&rhs)=default | |
item & | operator= (const item &rhs)=default |
item & | operator= (item &&rhs)=default |
bool | operator== (const item &rhs) const |
bool | operator!= (const item &rhs) const |
Static Public Attributes | |
static constexpr int | dimensions = Dimensions |
Protected Member Functions | |
template<bool has_offset = with_offset> | |
item (std::enable_if_t< has_offset, const range< Dimensions >> &extent, const id< Dimensions > &index, const id< Dimensions > &offset) | |
template<bool has_offset = with_offset> | |
item (std::enable_if_t<!has_offset, const range< Dimensions >> &extent, const id< Dimensions > &index) | |
Friends | |
class | detail::Builder |
Identifies an instance of the function object executing at each point in a range.
|
delete |
|
default |
|
default |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 55 of file item.hpp.
Referenced by sycl::_V1::h_item< Dimensions >::get_global_id(), sycl::_V1::h_item< Dimensions >::get_local_id(), sycl::_V1::h_item< Dimensions >::get_logical_local_id(), sycl::_V1::h_item< Dimensions >::get_physical_local_id(), sycl::_V1::detail::ItemToStr(), sycl::_V1::item< Dimensions, with_offset >::operator EnableIfT< Dimensions==1, std::size_t >(), sycl::_V1::detail::RoundedRangeKernel< TransformedArgType, Dims, KernelType >::operator()(), sycl::_V1::detail::RoundedRangeKernelWithKH< TransformedArgType, Dims, KernelType >::operator()(), and sycl::_V1::detail::writeItem().
|
inline |
Definition at line 57 of file item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 100 of file item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 81 of file item.hpp.
Referenced by sycl::_V1::detail::writeItem().
|
inline |
Definition at line 88 of file item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 69 of file item.hpp.
Referenced by sycl::_V1::h_item< Dimensions >::get_global_range(), sycl::_V1::h_item< Dimensions >::get_local_range(), sycl::_V1::h_item< Dimensions >::get_logical_local_range(), sycl::_V1::h_item< Dimensions >::get_physical_local_range(), sycl::_V1::detail::ItemToStr(), sycl::_V1::detail::RoundedRangeKernel< TransformedArgType, Dims, KernelType >::operator()(), sycl::_V1::detail::RoundedRangeKernelWithKH< TransformedArgType, Dims, KernelType >::operator()(), and sycl::_V1::detail::writeItem().
|
inline |
Definition at line 71 of file item.hpp.
References __SYCL_ASSUME_INT.
|
inline |
Definition at line 77 of file item.hpp.
References sycl::_V1::item< Dimensions, with_offset >::get_id().
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
Definition at line 63 of file item.hpp.
References __SYCL_ASSUME_INT.
|
friend |
|
staticconstexpr |