Triangulation< dim, spacedim >::RefinementListener Class Reference

Inheritance diagram for Triangulation< dim, spacedim >::RefinementListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~RefinementListener ()
virtual void pre_refinement_notification (const Triangulation< dim, spacedim > &tria)
virtual void post_refinement_notification (const Triangulation< dim, spacedim > &tria)
virtual void copy_notification (const Triangulation< dim, spacedim > &old_tria, const Triangulation< dim, spacedim > &new_tria)

Detailed Description

template<int dim, int spacedim = dim>
class Triangulation< dim, spacedim >::RefinementListener

Base class for refinement listeners. Other classes, which need to be informed about refinements of the Triangulation, can be derived from RefinementListener. If these classes add theirself to the refinement listener list by calling add_refinement_listener(), they will then be informed about the beginning of the refinement by a call of pre_refinement_notification() and about the end of the refinement process by a call of post_refinement_notification(). Both methods are called in the method execute_coarsening_and_refinement(). For an example see hp::DoFHandler().


Constructor & Destructor Documentation

template<int dim, int spacedim = dim>
virtual Triangulation< dim, spacedim >::RefinementListener::~RefinementListener (  )  [virtual]

Destructor. Does nothing, but is declared virtual because this class also has virtual functions.


Member Function Documentation

template<int dim, int spacedim = dim>
virtual void Triangulation< dim, spacedim >::RefinementListener::pre_refinement_notification ( const Triangulation< dim, spacedim > &  tria  )  [virtual]

Before refinement is actually performed, the triangulation class calls this method on all objects derived from this class and registered with the triangulation.

Reimplemented in hp::DoFHandler< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual void Triangulation< dim, spacedim >::RefinementListener::post_refinement_notification ( const Triangulation< dim, spacedim > &  tria  )  [virtual]

After refinement is actually performed, the triangulation class calls this method on all objects derived from this class and registered with the triangulation.

Reimplemented in hp::DoFHandler< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual void Triangulation< dim, spacedim >::RefinementListener::copy_notification ( const Triangulation< dim, spacedim > &  old_tria,
const Triangulation< dim, spacedim > &  new_tria 
) [virtual]

At the end of a call to copy_triangulation() the Triangulation class calls this method on all objects derived from this class and registered with the original Triangulation old_tria so that they might subscribe to the copied one new_tria as well, if that is desired. By default this method does nothing, a different behavior has to be implemented in derived classes.


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

deal.II documentation generated on Mon Nov 23 22:58:16 2009 by doxygen 1.6.1