Public Member Functions

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.

Definition at line 665 of file filtered_iterator.h.


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.

Definition at line 675 of file filtered_iterator.h.


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:08 by doxygen 1.7.2