3#ifndef DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
4#define DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
6#include <dune/common/iteratorrange.hh>
16 : std::integral_constant<bool, reverse>
76template<
typename P0,
typename P1,
bool reverse = false>
77IteratorRange< typename GridGlue<P0, P1>::template IntersectionIterator<reverse ? 1 : 0> >
80 const static int side = reverse ? 1 : 0;
81 return {glue.template ibegin<side>(), glue.template iend<side>()};
Definition gridglue.hh:37
Definition gridglue.hh:38
IteratorRange<... > intersections(const GridGlue<... > &glue, const Reverse<... > &reverse=!reversed)
Iterate over all intersections of a GridGlue.
GridGlue(const std::shared_ptr< const GridPatch< 0 > > &gp0, const std::shared_ptr< const GridPatch< 1 > > &gp1, const std::shared_ptr< Merger > &merger)
constructor
Definition gridglue.cc:21
IteratorRange<... > intersections(const GridGlue<... > &glue, const Reverse<... > &reverse=!reversed)
Iterate over all intersections of a GridGlue.
Definition rangegenerators.hh:17
const Reverse< true > reversed
Definition rangegenerators.hh:31
Reverse type
Definition rangegenerators.hh:18
constexpr Reverse<!reverse > operator!() const
Definition rangegenerators.hh:21