Reference documentation for deal.II version 9.0.0
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 720 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 1161 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 1172 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 1183 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 743 of file filtered_iterator.h.


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