SpECTRE  2021.08.02
StripeIterator Class Reference

Iterates over the 1-dimensional stripes with info on how to iterate over the current stripe. More...

#include <StripeIterator.hpp>

Public Member Functions

template<size_t Dim>
 StripeIterator (const Index< Dim > &extents, size_t stripe_dim) noexcept
 Construct from the grid points in each direction and which dimension the stripes are in.
 
 operator bool () const noexcept
 Returns true if the iterator is valid.
 
StripeIteratoroperator++ () noexcept
 Increment to the next stripe.
 
size_t offset () const noexcept
 Offset into DataVector for first element of stripe.
 
size_t stride () const noexcept
 Stride of elements in DataVector for the stripe.
 

Detailed Description

Iterates over the 1-dimensional stripes with info on how to iterate over the current stripe.