Skip to main content

struct subrange

Declaration

template <int Dims = 1>
struct subrange { /* full declaration omitted */ };

Template Parameters

int Dims = 1

Member Variables

id<Dims> offset
celerity::range<Dims> range = detail::zeros
static const int dimensions = Dims

Member Function Overview

  • subrange()
  • subrange(const id<Dims> & offset, const celerity::range<Dims> & range) → constexpr
  • subrange(const chunk<Dims> & other) → constexpr

Friend Function Overview

  • operator!=(const subrange<Dims> & lhs, const subrange<Dims> & rhs) → friend bool
  • operator==(const subrange<Dims> & lhs, const subrange<Dims> & rhs) → friend bool

Member Functions

subrange()


constexpr subrange(
    const id<Dims>& offset,
    const celerity::range<Dims>& range)

Parameters

const id<Dims>& offset
const celerity::range<Dims>& range

constexpr subrange(const chunk<Dims>& other)

Parameters

const chunk<Dims>& other

Friend Functions

friend bool operator!=(const subrange<Dims>& lhs,
                       const subrange<Dims>& rhs)

Parameters

const subrange<Dims>& lhs
const subrange<Dims>& rhs

friend bool operator==(const subrange<Dims>& lhs,
                       const subrange<Dims>& rhs)

Parameters

const subrange<Dims>& lhs
const subrange<Dims>& rhs