Struct DimensionSequence#

Nested Relationships#

Nested Types#

Struct Documentation#

struct DimensionSequence#

A sequence type for controlling iteration of each dimension of an N-dimensional value

Can choose whether to traverse from the highest dimension or from the lowest dimension.

Highest dimension refers to the dimension that changes the slowest while the lowest dimension refers to the dimension that changes the fastest

Public Functions

inline Iterator begin() const noexcept#
inline Iterator end() const noexcept#

Public Members

Dimension startDim#
Dimension endDim#
int step#

Public Static Functions

static inline DimensionSequence fromHighestToLowest(const Dimension dimension, const MemoryOrder memOrder)#

Traverse from the highest dimension to the lowest dimension

Parameters:
  • dimension – the count of dimensions

  • memOrder – the memory order

Returns:

static inline DimensionSequence fromLowestToHighest(const Dimension dimension, const MemoryOrder memOrder)#

Traverse from the lowest dimension to the highest dimension

Parameters:
  • dimension – the count of dimensions

  • memOrder – the memory order

Returns:

struct Iterator#

Public Functions

inline Dimension operator*() const noexcept#
inline Iterator &operator++() noexcept#
inline bool operator!=(const Iterator &other) const noexcept#

Public Members

Dimension currDim#
int step#