FilteredIterator< BaseIterator >::PredicateBase Class Reference
[Iterators on mesh-like containers]

Inheritance diagram for FilteredIterator< BaseIterator >::PredicateBase:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~PredicateBase ()
virtual bool operator() (const BaseIterator &bi) const =0
virtual PredicateBaseclone () const =0


Detailed Description

template<typename BaseIterator>
class FilteredIterator< BaseIterator >::PredicateBase

Base class to encapsulate a predicate object. Since predicates can be of different types and we do not want to code these types into the template parameter list of the filtered iterator class, we use a base class with an abstract function and templatized derived classes that implement the use of actual predicate types through the virtual function.

Constructor & Destructor Documentation

template<typename BaseIterator>
virtual FilteredIterator< BaseIterator >::PredicateBase::~PredicateBase (  )  [inline, virtual]

Mark the destructor virtual to allow destruction through pointers to the base class.


Member Function Documentation

template<typename BaseIterator>
virtual bool FilteredIterator< BaseIterator >::PredicateBase::operator() ( const BaseIterator bi  )  const [pure virtual]

Abstract function which in derived classes denotes the evaluation of the predicate on the give iterator.

Implemented in FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >.

template<typename BaseIterator>
virtual PredicateBase* FilteredIterator< BaseIterator >::PredicateBase::clone (  )  const [pure virtual]

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

Implemented in FilteredIterator< BaseIterator >::PredicateTemplate< Predicate >.


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

deal.II documentation generated on Sat Aug 15 16:51:57 2009 by doxygen 1.5.9