core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::NestedLoop< Dim, Axis > Struct Template Reference

Compile-time-unrolled nested loop over [bgn, end) in row-major (axis 0 fastest) order. More...

#include <types.hpp>

Static Public Member Functions

template<typename Func>
static void run (IVec< Dim > &idx, const IVec< Dim > &bgn, const IVec< Dim > &end, Func &&func)

Detailed Description

template<int Dim, int Axis>
struct peclet::core::NestedLoop< Dim, Axis >

Compile-time-unrolled nested loop over [bgn, end) in row-major (axis 0 fastest) order.

func receives the current IVec<Dim> index by const-ref. Ported from pbs::NestedLoop.

Definition at line 44 of file types.hpp.

Member Function Documentation

◆ run()

template<int Dim, int Axis>
template<typename Func>
void peclet::core::NestedLoop< Dim, Axis >::run ( IVec< Dim > & idx,
const IVec< Dim > & bgn,
const IVec< Dim > & end,
Func && func )
inlinestatic

Definition at line 46 of file types.hpp.

References run().

Referenced by peclet::core::forEachInBox(), and run().


The documentation for this struct was generated from the following file: