Reference documentation for deal.II version 9.5.0
\(\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\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
IteratorFilters::ActiveFEIndexEqualTo Class Reference

#include <deal.II/grid/filtered_iterator.h>

Public Member Functions

 ActiveFEIndexEqualTo (const unsigned int active_fe_index, const bool only_locally_owned=false)
 
 ActiveFEIndexEqualTo (const std::set< unsigned int > &active_fe_indices, const bool only_locally_owned=false)
 
template<class Iterator >
bool operator() (const Iterator &i) const
 

Protected Attributes

const std::set< unsigned intactive_fe_indices
 
const bool only_locally_owned
 

Detailed Description

Filter for iterators that evaluates to true if the iterator of the object pointed to is equal to a value or set of values given to the constructor, assuming that the iterator allows querying for an active FE index.

Definition at line 281 of file filtered_iterator.h.

Constructor & Destructor Documentation

◆ ActiveFEIndexEqualTo() [1/2]

IteratorFilters::ActiveFEIndexEqualTo::ActiveFEIndexEqualTo ( const unsigned int  active_fe_index,
const bool  only_locally_owned = false 
)
inline

Constructor. Store the active FE index which iterators shall have to be evaluated to true and state if the iterator must be locally owned.

Definition at line 1505 of file filtered_iterator.h.

◆ ActiveFEIndexEqualTo() [2/2]

IteratorFilters::ActiveFEIndexEqualTo::ActiveFEIndexEqualTo ( const std::set< unsigned int > &  active_fe_indices,
const bool  only_locally_owned = false 
)
inline

Constructor. Store a collection of active FE indices which iterators shall have to be evaluated to true and state if the iterator must be locally owned.

Definition at line 1514 of file filtered_iterator.h.

Member Function Documentation

◆ operator()()

template<class Iterator >
bool IteratorFilters::ActiveFEIndexEqualTo::operator() ( const Iterator &  i) const
inline

Evaluation operator. Returns true if the active FE index of the object pointed to is equal within the stored set of value allowable values and, if required, if the cell is locally owned.

Definition at line 1525 of file filtered_iterator.h.

Member Data Documentation

◆ active_fe_indices

const std::set<unsigned int> IteratorFilters::ActiveFEIndexEqualTo::active_fe_indices
protected

Stored value to compare the material id with.

Definition at line 312 of file filtered_iterator.h.

◆ only_locally_owned

const bool IteratorFilters::ActiveFEIndexEqualTo::only_locally_owned
protected

Flag stating whether only locally owned cells must return true.

Definition at line 316 of file filtered_iterator.h.


The documentation for this class was generated from the following file: