Reference documentation for deal.II version Git e3a3ec7800 2020-08-07 14:08:19 +0200
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Classes | Namespaces | Functions
filtered_iterator.h File Reference
#include <deal.II/base/config.h>
#include <deal.II/base/exceptions.h>
#include <deal.II/base/iterator_range.h>
#include <deal.II/grid/tria_iterator_base.h>
#include <memory>
#include <set>
#include <tuple>

Go to the source code of this file.

Classes

class  IteratorFilters::Active
 
class  IteratorFilters::UserFlagSet
 
class  IteratorFilters::UserFlagNotSet
 
class  IteratorFilters::LevelEqualTo
 
class  IteratorFilters::SubdomainEqualTo
 
class  IteratorFilters::LocallyOwnedCell
 
class  IteratorFilters::LocallyOwnedLevelCell
 
class  IteratorFilters::MaterialIdEqualTo
 
class  IteratorFilters::ActiveFEIndexEqualTo
 
class  IteratorFilters::AtBoundary
 
class  FilteredIterator< BaseIterator >
 
class  FilteredIterator< BaseIterator >::PredicateBase
 
class  FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >
 
struct  internal::FilteredIteratorImplementation::NestFilteredIterators< BaseIterator, TypeList >
 
struct  internal::FilteredIteratorImplementation::NestFilteredIterators< BaseIterator, std::tuple< Predicate > >
 
struct  internal::FilteredIteratorImplementation::NestFilteredIterators< BaseIterator, std::tuple< Predicate, Targs... > >
 

Namespaces

 IteratorFilters
 
 internal
 
 internal::FilteredIteratorImplementation
 

Functions

template<typename BaseIterator , typename Predicate >
FilteredIterator< BaseIteratormake_filtered_iterator (const BaseIterator &i, const Predicate &p)
 
template<typename BaseIterator , typename Predicate >
IteratorRange< FilteredIterator< BaseIterator > > filter_iterators (IteratorRange< BaseIterator > i, const Predicate &p)
 
template<typename BaseIterator , typename Predicate , typename... Targs>
IteratorRange< typename internal::FilteredIteratorImplementation::NestFilteredIterators< BaseIterator, std::tuple< Predicate, Targs... > >::type > filter_iterators (IteratorRange< BaseIterator > i, const Predicate &p, const Targs... args)
 

Function Documentation

◆ make_filtered_iterator()

template<typename BaseIterator , typename Predicate >
FilteredIterator< BaseIterator > make_filtered_iterator ( const BaseIterator i,
const Predicate &  p 
)

Create an object of type FilteredIterator given the base iterator and predicate. This function makes the creation of temporary objects (for example as function arguments) a lot simpler because one does not have to explicitly specify the type of the base iterator by hand – it is deduced automatically here.

Definition at line 788 of file filtered_iterator.h.