Skip to main content

class item

Declaration

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

Template Parameters

int Dims = 1

Member Variables

id<Dims> m_absolute_global_id
id<Dims> m_global_offset
range<Dims> m_global_range

Member Function Overview

Friend Function Overview

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

Member Functions

id<Dims> get_id() const


size_t get_id(int dimension) const

Parameters

int dimension

size_t get_linear_id() const


id<Dims> get_offset() const


range<Dims> get_range() const


size_t get_range(int dimension) const

Parameters

int dimension

item()


operator id<Dims>() const


size_t operator[](int dimension) const

Parameters

int dimension

explicit item(id<Dims> absolute_global_id,
              id<Dims> global_offset,
              range<Dims> global_range)

Parameters

id<Dims> absolute_global_id
id<Dims> global_offset
range<Dims> global_range

Friend Functions

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

Parameters

const item<Dims>& lhs
const item<Dims>& rhs

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

Parameters

const item<Dims>& lhs
const item<Dims>& rhs