1#ifndef DUNE_GRID_UTILITY_MULTIINDEX_HH
2#define DUNE_GRID_UTILITY_MULTIINDEX_HH
13 namespace FactoryUtilities
15 template<std::
size_t dim>
16 class MultiIndex :
public std::array<unsigned int,dim>
19 std::array<unsigned int,dim> limits_;
23 MultiIndex(
const std::array<unsigned int,dim>& limits) : limits_(limits)
25 std::fill(this->begin(), this->end(), 0);
29 MultiIndex<dim>& operator++()
31 for (std::size_t i=0; i<dim; i++)
37 if ((*
this)[i]<limits_[i])
49 for (std::size_t i=0; i<dim; i++)
Dune namespace.
Definition: alignedallocator.hh:10