1#ifndef DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
2#define DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
4#include <dune/common/iteratorrange.hh>
14 : std::integral_constant<bool, reverse>
74template<
typename P0,
typename P1,
bool reverse = false>
75IteratorRange<typename GridGlueView<P0, P1, reverse ? 1 : 0>::IntersectionIterator>
76intersections(
const GridGlue<P0, P1>& glue,
const Reverse<reverse>& = {})
78 const static int side = reverse ? 1 : 0;
79 return {glue.template ibegin<side>(), glue.template iend<side>()};
Definition gridglue.hh:30
IteratorRange<... > intersections(const GridGlue<... > &glue, const Reverse<... > &reverse=!reversed)
Iterate over all intersections of a GridGlue.
sequential adapter to couple two grids at specified close together boundaries
Definition gridglue.hh:93
IteratorRange<... > intersections(const GridGlue<... > &glue, const Reverse<... > &reverse=!reversed)
Iterate over all intersections of a GridGlue.
Definition rangegenerators.hh:15
const Reverse< true > reversed
Definition rangegenerators.hh:29
Reverse type
Definition rangegenerators.hh:16
constexpr Reverse<!reverse > operator!() const
Definition rangegenerators.hh:19