#include <sycl/detail/array.hpp>
Public Member Functions | |
template<int N = dimensions> | |
array (typename std::enable_if_t<(N==1), size_t > dim0=0) | |
template<int N = dimensions> | |
array (typename std::enable_if_t<(N==2), size_t > dim0, size_t dim1) | |
template<int N = dimensions, std::enable_if_t<(N==2), size_t > = 0> | |
array () | |
template<int N = dimensions> | |
array (typename std::enable_if_t<(N==3), size_t > dim0, size_t dim1, size_t dim2) | |
template<int N = dimensions, std::enable_if_t<(N==3), size_t > = 0> | |
array () | |
operator sycl::id< dimensions > () const | |
size_t | get (int dimension) const |
size_t & | operator[] (int dimension) |
size_t | operator[] (int dimension) const |
array (const array< dimensions > &rhs)=default | |
array (array< dimensions > &&rhs)=default | |
array< dimensions > & | operator= (const array< dimensions > &rhs)=default |
array< dimensions > & | operator= (array< dimensions > &&rhs)=default |
bool | operator== (const array< dimensions > &rhs) const |
bool | operator!= (const array< dimensions > &rhs) const |
Protected Member Functions | |
__SYCL_ALWAYS_INLINE void | check_dimension (int dimension) const |
Protected Attributes | |
size_t | common_array [dimensions] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inlineprotected |
Definition at line 106 of file array.hpp.
References sycl::_V1::invalid, and sycl::_V1::make_error_code().
Referenced by sycl::_V1::detail::array< dimensions >::get(), and sycl::_V1::detail::array< dimensions >::operator[]().
|
inline |
Definition at line 62 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::check_dimension(), and sycl::_V1::detail::array< dimensions >::common_array.
Referenced by syclcompat::detail::get_copy_range(), syclcompat::malloc(), and syclcompat::detail::memset().
|
inline |
Definition at line 54 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::common_array.
|
inline |
Definition at line 95 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::common_array.
|
default |
|
default |
|
inline |
Definition at line 84 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::common_array.
Referenced by sycl::_V1::id< Dimensions >::operator==().
|
inline |
Definition at line 67 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::check_dimension(), and sycl::_V1::detail::array< dimensions >::common_array.
|
inline |
Definition at line 72 of file array.hpp.
References sycl::_V1::detail::array< dimensions >::check_dimension(), and sycl::_V1::detail::array< dimensions >::common_array.
|
protected |
Definition at line 105 of file array.hpp.
Referenced by sycl::_V1::detail::array< dimensions >::get(), sycl::_V1::detail::array< dimensions >::operator sycl::id< dimensions >(), sycl::_V1::detail::array< dimensions >::operator!=(), sycl::_V1::detail::array< dimensions >::operator==(), and sycl::_V1::detail::array< dimensions >::operator[]().