Go to the documentation of this file. 1 #ifndef DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
2 #define DUNE_GRIDGLUE_ADAPTER_RANGEGENERATORS_HH
4 #include <dune/common/iteratorrange.hh>
12 template<
bool reverse>
14 : std::integral_constant<bool, reverse>
74 template<
typename P0,
typename P1,
bool reverse = false>
75 IteratorRange< typename GridGlue<P0, P1>::template IntersectionIterator<reverse ? 1 : 0> >
76 intersections(
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:35
const Reverse< true > reversed
Definition: rangegenerators.hh:29
constexpr Reverse<!reverse > operator!() const
Definition: rangegenerators.hh:19
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:52
Definition: rangegenerators.hh:15
Reverse type
Definition: rangegenerators.hh:16