Go to the documentation of this file.
3#ifndef DUNE_GRID_UTILITY_MULTIINDEX_HH
4#define DUNE_GRID_UTILITY_MULTIINDEX_HH
15 namespace FactoryUtilities
17 template<std::
size_t dim>
18 class MultiIndex :
public std::array<unsigned int,dim>
21 std::array<unsigned int,dim> limits_;
25 MultiIndex(
const std::array<unsigned int,dim>& limits) : limits_(limits)
27 std::fill(this->begin(), this->end(), 0);
31 MultiIndex<dim>& operator++()
33 for (std::size_t i=0; i<dim; i++)
39 if ((*
this)[i]<limits_[i])
51 for (std::size_t i=0; i<dim; i++)
Dune namespace.
Definition: alignedallocator.hh:13