]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make some more functions virtual.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 1999 09:20:28 +0000 (09:20 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 1999 09:20:28 +0000 (09:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@1696 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria.h

index 11d130e5022d91d5ff6823c74d5e5c653c0b1071..28ae990938d477e77ad5a749e3d8e12abf38032b 100644 (file)
@@ -1720,8 +1720,13 @@ class Triangulation
                                      *
                                      *  This triangulation must be empty
                                      *  beforehand.
+                                     *
+                                     *  The function is made #virtual# since
+                                     *  some derived classes might want to
+                                     *  disable the functionality of this
+                                     *  function.
                                      */
-    void copy_triangulation (const Triangulation<dim> &old_tria);
+    virtual void copy_triangulation (const Triangulation<dim> &old_tria);
 
                                     /**
                                      * Write out a triangulation en bloc, i.e.
@@ -1735,15 +1740,23 @@ class Triangulation
                                      * only thought to support fast creation
                                      * of and restoration from temporary
                                      * files.
+                                     *
+                                     * The function is made #virtual# to
+                                     * allow derived classes to write their
+                                     * contents as well.
                                      */
-    void block_write (ostream &out) const;
+    virtual void block_write (ostream &out) const;
 
                                     /**
                                      * Restore a triangulation written by the
                                      * above function. The present content of
                                      * the triangulation is obviously lost.
+                                     *
+                                     * The function is made #virtual# to
+                                     * allow derived classes to read their
+                                     * contents as well.
                                      */
-    void block_read (istream &in);
+    virtual void block_read (istream &in);
     
                                     /**
                                      * Create a triangulation from a list
@@ -1763,10 +1776,14 @@ class Triangulation
                                      * #cells# array is subject to some
                                      * constraints; see the general class
                                      * documentation for this.
+                                     *
+                                     * This function is made #virtual# to allow
+                                     * derived classes to set up some data
+                                     * structures as well.
                                      */
-    void create_triangulation (const vector<Point<dim> >    &vertices,
-                              const vector<CellData<dim> > &cells,
-                              const SubCellData            &subcelldata);
+    virtual void create_triangulation (const vector<Point<dim> >    &vertices,
+                                      const vector<CellData<dim> > &cells,
+                                      const SubCellData            &subcelldata);
 
                                     /**
                                      * Distort the grid by randomly moving

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.