cl::sycl::range< dims > Class Template Reference
dims-dimensional range More...
#include <id.h>
Inheritance diagram for cl::sycl::range< dims >:
Public Member Functions | |
COMPUTECPP_CONSTEXPR_CPP14 | range () noexcept |
Initializes all values to one. More... | |
constexpr | range (const base_t &other) noexcept |
Copy constructor from the base class. More... | |
template<class... indexesTs> | |
constexpr | range (size_t firstIndex, indexesTs... indexes) noexcept |
Initializes values per dimension. More... | |
COMPUTECPP_CONSTEXPR_CPP14 | range (const detail::index_array &other) noexcept |
Implicit conversion from an index_array. More... | |
COMPUTECPP_CONSTEXPR_CPP14 | operator detail::index_array () const noexcept |
Implicit conversion to an index_array. More... | |
COMPUTECPP_CONSTEXPR_CPP14 size_t | size () const noexcept |
Return the size of the range. More... | |
Friends | |
template<int RangeDims> | |
constexpr const size_t * | detail::get_internal_array (const range< RangeDims > &) |
Detailed Description
template<int dims>
class cl::sycl::range< dims >
dims-dimensional range
- Note
- SYCL only supports dims to be 1, 2, or 3. Using a higher dimension is a Codeplay extension.
- Template Parameters
-
dims Number of range dimensions
Constructor & Destructor Documentation
◆ range() [1/4]
template<int dims>
|
inlinenoexcept |
◆ range() [2/4]
template<int dims>
|
inlinenoexcept |
◆ range() [3/4]
template<int dims>
template<class... indexesTs>
|
inlinenoexcept |
Initializes values per dimension.
All values must be specified.
- Template Parameters
-
indexesTs Indexes are passed as a parameter pack to allow for any dimension
- Parameters
-
firstIndex Value for first dimension (minimum dimension is 1) indexes Values for second and further dimensions
◆ range() [4/4]
template<int dims>
|
inlinenoexcept |
Member Function Documentation
◆ operator detail::index_array()
template<int dims>
|
inlinenoexcept |
◆ size()
template<int dims>
|
inlinenoexcept |
Friends And Related Function Documentation
◆ detail::get_internal_array
template<int dims>
template<int RangeDims>
|
friend |
The documentation for this class was generated from the following files: