Dimension templated loops.
More...
#include <Loops.h>
|
| template<int start, int stop, typename T > |
| static void | Unroll (T lambda) |
| | Unroll a fixed-length loop. More...
|
| |
| template<int D, typename T , typename A > |
| static void | Nested (A start, A end, T lambda) |
| | Loop over a range of integer coordinates. More...
|
| |
| template<int D, typename V , typename T > |
| static void | OverInteriorIndexes (const V &view, T lambda) |
| | Loop over all the interior coordinates of a view. More...
|
| |
| template<int D, typename V , typename T > |
| static void | OverAllIndexes (const V &view, T lambda) |
| | Loop over all the coordinates of a view, including ghost cells. More...
|
| |
Dimension templated loops.
◆ Nested()
template<int D, typename T , typename A >
| static void ThunderEgg::Loop::Nested |
( |
A |
start, |
|
|
A |
end, |
|
|
T |
lambda |
|
) |
| |
|
inlinestatic |
Loop over a range of integer coordinates.
- Template Parameters
-
| D | the dimensions of the coordinates |
| T | lambda type |
| A | coordinate type |
- Parameters
-
| start | initial coordinate |
| end | final coordinate, inclusive |
| lambda | the lambda function to call each time |
◆ OverAllIndexes()
template<int D, typename V , typename T >
| static void ThunderEgg::Loop::OverAllIndexes |
( |
const V & |
view, |
|
|
T |
lambda |
|
) |
| |
|
inlinestatic |
Loop over all the coordinates of a view, including ghost cells.
- Template Parameters
-
| D | the dimension of the view |
| V | the view type |
| T | the lambda type |
- Parameters
-
| view | the view to loop over |
| lambda | the lambda function to call each time |
◆ OverInteriorIndexes()
template<int D, typename V , typename T >
| static void ThunderEgg::Loop::OverInteriorIndexes |
( |
const V & |
view, |
|
|
T |
lambda |
|
) |
| |
|
inlinestatic |
Loop over all the interior coordinates of a view.
- Template Parameters
-
| D | the dimension of the view |
| V | the view type |
| T | the lambda type |
- Parameters
-
| view | the view to loop over |
| lambda | the lambda function to call each time |
◆ Unroll()
template<int start, int stop, typename T >
| static void ThunderEgg::Loop::Unroll |
( |
T |
lambda | ) |
|
|
inlinestatic |
Unroll a fixed-length loop.
- Template Parameters
-
| start | the starting index |
| stop | the stopping index, inclusive |
| T | lambda type |
- Parameters
-
The documentation for this class was generated from the following file: