Reference documentation for deal.II version 8.5.1
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
 
virtual PredicateBaseclone () const
 
- Public Member Functions inherited from FilteredIterator< BaseIterator >::PredicateBase
virtual ~PredicateBase ()
 

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 721 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 1165 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
virtual

Evaluate the iterator with the stored copy of the predicate.

Implements FilteredIterator< BaseIterator >::PredicateBase.

Definition at line 1176 of file filtered_iterator.h.

◆ clone()

template<typename BaseIterator >
template<typename Predicate >
FilteredIterator< BaseIterator >::PredicateBase * FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >::clone ( ) const
virtual

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

Implements FilteredIterator< BaseIterator >::PredicateBase.

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


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