Reference documentation for deal.II version 9.2.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\}}\)
Public Member Functions | Private Attributes | List of all members
FilteredIterator< BaseIterator >::PredicateTemplate< Predicate > Class Template Reference
Inheritance diagram for FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >:
[legend]

Public Member Functions

 PredicateTemplate (const Predicate &predicate)
 
virtual bool operator() (const BaseIterator &bi) const override
 
virtual std::unique_ptr< PredicateBaseclone () const override
 
- Public Member Functions inherited from FilteredIterator< BaseIterator >::PredicateBase
virtual ~PredicateBase ()=default
 

Private Attributes

const Predicate predicate
 

Detailed Description

template<typename BaseIterator>
template<typename Predicate>
class FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >

Actual implementation of the above abstract base class. Use a template parameter to denote the actual type of the predicate and store a copy of it. When the virtual function is called evaluate the given iterator with the stored copy of the predicate.

Definition at line 745 of file filtered_iterator.h.

Constructor & Destructor Documentation

◆ PredicateTemplate()

template<typename BaseIterator >
template<typename Predicate >
FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >::PredicateTemplate ( const Predicate &  predicate)
inline

Constructor. Take a predicate and store a copy of it.

Definition at line 1133 of file filtered_iterator.h.

Member Function Documentation

◆ operator()()

template<typename BaseIterator >
template<typename Predicate >
bool FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >::operator() ( const BaseIterator bi) const
overridevirtual

Evaluate the iterator with the stored copy of the predicate.

Implements FilteredIterator< BaseIterator >::PredicateBase.

Definition at line 1143 of file filtered_iterator.h.

◆ clone()

template<typename BaseIterator >
template<typename Predicate >
std::unique_ptr< typename FilteredIterator< BaseIterator >::PredicateBase > FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >::clone
overridevirtual

Generate a copy of this object, i.e. of the actual type of this pointer.

Implements FilteredIterator< BaseIterator >::PredicateBase.

Definition at line 1153 of file filtered_iterator.h.

Member Data Documentation

◆ predicate

template<typename BaseIterator >
template<typename Predicate >
const Predicate FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >::predicate
private

Copy of the predicate.

Definition at line 770 of file filtered_iterator.h.


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