Skip to main content

class range

Declaration

template <int Dims = 1>
class range { /* full declaration omitted */ };

Template Parameters

int Dims = 1

Member Aliases

  • using coordinate = detail::coordinate<range<Dims>, Dims>;

Member Function Overview

  • template <int D = Dims, typename = std::enable_if_t<D >= 1 && D <= 3>>
    operator range<Dimensions>() const
  • range() noexcept
  • range(detail::zeros_t) → constexpr
  • range(detail::ones_t) → constexpr
  • template <typename... Values, typename = std::enable_if_t<sizeof...(Values) + 1 == Dims>>
    range(size_t dim_0, const Values... dim_n) → constexpr
  • template <int D = Dims, typename = std::enable_if_t<D >= 1 && D <= 3>>
    range(const sycl::range<Dims> & sycl_range)
  • size() const → constexpr size_t
  • template <typename InterfaceIn, int DimsIn>
    range(detail::make_from_t, const detail::coordinate<InterfaceIn, DimsIn> & in) → constexpr

Member Functions

template <
    int D = Dims,
    typename = std::enable_if_t<D >= 1 && D <= 3>>
operator range<Dimensions>() const

Template Parameters

int D = Dims
= std::enable_if_t<D >= 1 && D <= 3>

range() noexcept


constexpr range(detail::zeros_t)

Parameters

detail::zeros_t

constexpr range(detail::ones_t)

Parameters

detail::ones_t

template <typename... Values,
          typename = std::enable_if_t<
              sizeof...(Values) + 1 == Dims>>
constexpr range(size_t dim_0,
                const Values... dim_n)

Template Parameters

Values
= std::enable_if_t<sizeof...(Values) + 1 == Dims>

Parameters

size_t dim_0
const Values... dim_n

template <
    int D = Dims,
    typename = std::enable_if_t<D >= 1 && D <= 3>>
range(const sycl::range<Dims>& sycl_range)

Template Parameters

int D = Dims
= std::enable_if_t<D >= 1 && D <= 3>

Parameters

const sycl::range<Dims>& sycl_range

constexpr size_t size() const


template <typename InterfaceIn, int DimsIn>
constexpr range(
    detail::make_from_t,
    const detail::coordinate<InterfaceIn, DimsIn>&
        in)

Template Parameters

InterfaceIn
int DimsIn

Parameters

detail::make_from_t
const detail::coordinate<InterfaceIn, DimsIn>& in