DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::id< Dimensions > Class Template Reference

A unique identifier of an item in an index space. More...

#include <sycl/detail/array.hpp>

Collaboration diagram for sycl::_V1::id< Dimensions >:

Public Member Functions

 id ()=default
 
template<int N = Dimensions>
 id (ParamTy< N, 1, size_t > dim0)
 
template<int N = Dimensions>
 id (ParamTy< N, 1, const range< Dimensions >> &range_size)
 
template<int N = Dimensions, bool with_offset = true>
 id (ParamTy< N, 1, const item< Dimensions, with_offset >> &item)
 
template<int N = Dimensions>
 id (ParamTy< N, 2, size_t > dim0, size_t dim1)
 
template<int N = Dimensions>
 id (ParamTy< N, 2, const range< Dimensions >> &range_size)
 
template<int N = Dimensions, bool with_offset = true>
 id (ParamTy< N, 2, const item< Dimensions, with_offset >> &item)
 
template<int N = Dimensions>
 id (ParamTy< N, 3, size_t > dim0, size_t dim1, size_t dim2)
 
template<int N = Dimensions>
 id (ParamTy< N, 3, const range< Dimensions >> &range_size)
 
template<int N = Dimensions, bool with_offset = true>
 id (ParamTy< N, 3, const item< Dimensions, with_offset >> &item)
 
 operator range< Dimensions > () const
 
__SYCL_ALWAYS_INLINE operator EnableIfT< (Dimensions==1)
 
__SYCL_ALWAYS_INLINE size_t () const
 
bool operator== (const id< Dimensions > &rhs) const
 

Static Public Attributes

static constexpr int dimensions = Dimensions
 

Detailed Description

template<int Dimensions = 1>
class sycl::_V1::id< Dimensions >

A unique identifier of an item in an index space.

Definition at line 20 of file array.hpp.

Constructor & Destructor Documentation

◆ id() [1/10]

template<int Dimensions = 1>
sycl::_V1::id< Dimensions >::id ( )
default

◆ id() [2/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 1, size_t dim0)
inline

Definition at line 65 of file id.hpp.

◆ id() [3/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 1, const range< Dimensions >> &  range_size)
inline

Definition at line 68 of file id.hpp.

◆ id() [4/10]

template<int Dimensions = 1>
template<int N = Dimensions, bool with_offset = true>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 1, const item< Dimensions, with_offset >> &  item)
inline

Definition at line 72 of file id.hpp.

◆ id() [5/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 2, size_t dim0,
size_t  dim1 
)
inline

Definition at line 78 of file id.hpp.

◆ id() [6/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 2, const range< Dimensions >> &  range_size)
inline

Definition at line 81 of file id.hpp.

◆ id() [7/10]

template<int Dimensions = 1>
template<int N = Dimensions, bool with_offset = true>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 2, const item< Dimensions, with_offset >> &  item)
inline

Definition at line 85 of file id.hpp.

◆ id() [8/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 3, size_t dim0,
size_t  dim1,
size_t  dim2 
)
inline

Definition at line 91 of file id.hpp.

◆ id() [9/10]

template<int Dimensions = 1>
template<int N = Dimensions>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 3, const range< Dimensions >> &  range_size)
inline

Definition at line 95 of file id.hpp.

◆ id() [10/10]

template<int Dimensions = 1>
template<int N = Dimensions, bool with_offset = true>
sycl::_V1::id< Dimensions >::id ( ParamTy< N, 3, const item< Dimensions, with_offset >> &  item)
inline

Definition at line 99 of file id.hpp.

Member Function Documentation

◆ operator EnableIfT<()

template<int Dimensions = 1>
__SYCL_ALWAYS_INLINE sycl::_V1::id< Dimensions >::operator EnableIfT< ( Dimensions  = = 1)

◆ operator range< Dimensions >()

template<int Dimensions = 1>
sycl::_V1::id< Dimensions >::operator range< Dimensions > ( ) const
inlineexplicit

Definition at line 103 of file id.hpp.

◆ operator==()

template<int Dimensions = 1>
bool sycl::_V1::id< Dimensions >::operator== ( const id< Dimensions > &  rhs) const
inline

Definition at line 130 of file id.hpp.

◆ size_t()

template<int Dimensions = 1>
__SYCL_ALWAYS_INLINE sycl::_V1::id< Dimensions >::size_t ( ) const
inline

Definition at line 118 of file id.hpp.

Member Data Documentation

◆ dimensions

template<int Dimensions = 1>
constexpr int sycl::_V1::id< Dimensions >::dimensions = Dimensions
staticconstexpr

Definition at line 38 of file id.hpp.


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