Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
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 1132 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 1142 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 1152 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: