Reference documentation for deal.II version 9.6.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
FilteredIterator< BaseIterator >::PredicateTemplate< Predicate > Class Template Reference
Inheritance diagram for FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >:

Public Member Functions

 PredicateTemplate (const Predicate &predicate)
 
virtual bool operator() (const BaseIterator &bi) const override
 
virtual std::unique_ptr< PredicateBaseclone () const override
 

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 854 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 1359 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 1368 of file filtered_iterator.h.

◆ clone()

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

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

Implements FilteredIterator< BaseIterator >::PredicateBase.

Definition at line 1379 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 879 of file filtered_iterator.h.


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