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
- get_id() const → id<Dims>
- get_id(int dimension) const → size_t
- get_linear_id() const → size_t
- get_offset() const → id<Dims>
- get_range() const → range<Dims>
- get_range(int dimension) const → size_t
- item()
- operator id<Dims>() const
- operator[](int dimension) const → size_t
- item(id<Dims> absolute_global_id, id<Dims> global_offset, range<Dims> global_range) → explicit
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
id<Dims> get_id() const
¶size_t get_id(int dimension) const
size_t get_id(int dimension) const
Parameters
- int dimension
¶size_t get_linear_id() const
size_t get_linear_id() const
¶id<Dims> get_offset() const
id<Dims> get_offset() const
¶range<Dims> get_range() const
range<Dims> get_range() const
¶size_t get_range(int dimension) const
size_t get_range(int dimension) const
Parameters
- int dimension
¶item()
item()
¶operator id<Dims>() const
operator id<Dims>() const
¶size_t operator[](int dimension) 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)
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)
friend bool operator!=(const item<Dims>& lhs,
const item<Dims>& rhs)
Parameters
¶friend bool operator==(const item<Dims>& lhs,
const item<Dims>& rhs)
friend bool operator==(const item<Dims>& lhs,
const item<Dims>& rhs)