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) |
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().
virtual Triangulation< dim, spacedim >::RefinementListener::~RefinementListener | ( | ) | [virtual] |
Destructor. Does nothing, but is declared virtual because this class also has virtual functions.
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 >.
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 >.
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.