]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add some code to make the copiler happier with unitialized data members and copy...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 1999 16:09:59 +0000 (16:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jun 1999 16:09:59 +0000 (16:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@1389 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_handler.h
deal.II/deal.II/include/fe/fe.h
deal.II/deal.II/include/numerics/error_estimator.h
deal.II/deal.II/include/numerics/time_dependent.h

index f5c6a12d658e64721bd6e6e8af790c766b5e913a..3406fd190c692b6f67e6392c1bb7f97d904bbeca 100644 (file)
@@ -1476,6 +1476,29 @@ class DoFHandler
     SmartPointer<const FiniteElement<dim> > selected_fe;
 
   private:
+
+                                    /**
+                                     * Copy constructor. I can see no reason
+                                     * why someone might want to use it, so
+                                     * I don't provide it. Since this class
+                                     * has pointer members, making it private
+                                     * prevents the compiler to provide it's
+                                     * own, incorrect one if anyone chose to
+                                     * copy such an object.
+                                     */
+    DoFHandler (const DoFHandler &);
+
+                                    /**
+                                     * Copy operator. I can see no reason
+                                     * why someone might want to use it, so
+                                     * I don't provide it. Since this class
+                                     * has pointer members, making it private
+                                     * prevents the compiler to provide it's
+                                     * own, incorrect one if anyone chose to
+                                     * copy such an object.
+                                     */
+    DoFHandler & operator = (const DoFHandler &);
+
                                     /**
                                      * Reserve enough space in the 
                                      * #levels[]# objects to store the
index bb538aad676a49e7d9635795eedd7bd356b32b85..e00421f7220dd97ab952787bdda64e40f1a03611 100644 (file)
@@ -141,6 +141,13 @@ class FiniteElementData
                       const unsigned int n_transform_functions,
                       const unsigned int n_components);
 
+                                    /**
+                                     * Declare this destructor virtual in
+                                     * order to make the respective destructors
+                                     * in derived classes virtual as well.
+                                     */
+    virtual ~FiniteElementData ();
+    
                                     /**
                                      * Comparison operator. It is not clear to
                                      * me why we have to declare and implement
index 144aed5e806937e4bbf25998e5fd27d4a17379c2..beafcd86b724aa8ec0e5d99d8ff5321cb9b16257 100644 (file)
@@ -274,6 +274,7 @@ class KellyErrorEstimator {
 
 
 
+
 /*----------------------------   error_estimator.h     ---------------------------*/
 /* end of #ifndef __error_estimator_H */
 #endif
index 74584b16423bc8e8e5c8e228c1a0b1cd3f935fa3..72190f04ba3c35cf3d4d0d540497aa0e3b6d6a7d 100644 (file)
@@ -1000,6 +1000,27 @@ class TimeStepBase : public Subscriptor
     void set_sweep_no (const unsigned int sweep_no);
     
 
+                                    /**
+                                     * Copy constructor. I can see no reason
+                                     * why someone might want to use it, so
+                                     * I don't provide it. Since this class
+                                     * has pointer members, making it private
+                                     * prevents the compiler to provide it's
+                                     * own, incorrect one if anyone chose to
+                                     * copy such an object.
+                                     */
+    TimeStepBase (const TimeStepBase &);
+
+                                    /**
+                                     * Copy operator. I can see no reason
+                                     * why someone might want to use it, so
+                                     * I don't provide it. Since this class
+                                     * has pointer members, making it private
+                                     * prevents the compiler to provide it's
+                                     * own, incorrect one if anyone chose to
+                                     * copy such an object.
+                                     */
+    TimeStepBase & operator = (const TimeStepBase &);
 
                                     // make the manager object a friend
     friend class TimeDependent;

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.