1#ifndef DUNE_FEM_RANGEGENERATORS_HH
2#define DUNE_FEM_RANGEGENERATORS_HH
4#include <dune/common/iteratorrange.hh>
57 inline IteratorRange<typename DF::DiscreteFunctionSpaceType::IteratorType>
entities(
const DF& df)
59 typedef IteratorRange<typename DF::DiscreteFunctionSpaceType::IteratorType> ReturnType;
60 return ReturnType(df.space().begin(),df.space().end());
76 inline IteratorRange<typename DF::DofIteratorType>
dofs(DF& df)
78 typedef IteratorRange<typename DF::DofIteratorType> ReturnType;
79 return ReturnType(df.dbegin(),df.dend());
95 inline IteratorRange<typename DF::ConstDofIteratorType>
dofs(
const DF& df)
97 typedef IteratorRange<typename DF::ConstDofIteratorType> ReturnType;
98 return ReturnType(df.dbegin(),df.dend());
Definition: bindguard.hh:11
IteratorRange< typename DF::DiscreteFunctionSpaceType::IteratorType > entities(const DF &df)
Iterator ranges for entities and DOFs to support iteration with range-based for loops.
Definition: rangegenerators.hh:57
IteratorRange< typename DF::DofIteratorType > dofs(DF &df)
Iterates over all DOFs.
Definition: rangegenerators.hh:76