]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
derive the Sparsematrix and Sparsematrixstruct from Subsriptor
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 May 1999 10:54:38 +0000 (10:54 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 May 1999 10:54:38 +0000 (10:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@1238 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.h

index 268ab93e5adf39e76f316f23c316c68057753b91..3c215ec5c07748590452f697e537bdd3325904c6 100644 (file)
@@ -12,6 +12,8 @@
 
 
 #include <base/exceptions.h>
+#include <base/subscriptor.h>
+#include <base/smartpointer.h>
 
 
 //forward declarations
@@ -27,7 +29,7 @@ class ostream;
 
    @author Original version by Roland Becker, Guido Kanschat, Franz-Theo Suttmeier; lots of enhancements, reorganisation and documentation by Wolfgang Bangerth
    */
-class SparseMatrixStruct
+class SparseMatrixStruct : public Subscriptor
 {
   public:
                                     /**
@@ -422,7 +424,7 @@ CLASS
    @author Original version by Roland Becker, Guido Kanschat, Franz-Theo Suttmeier; lots of enhancements, reorganisation and documentation by Wolfgang Bangerth 1998
    */
 template <typename number>
-class SparseMatrix
+class SparseMatrix : public Subscriptor
 {
   public:
                                     /**
@@ -910,7 +912,7 @@ class SparseMatrix
     DeclException0 (ExcInvalidConstructorCall);
     
   private:
-    const SparseMatrixStruct * cols;
+    SmartPointer<const SparseMatrixStruct> cols;
     number* val;
     unsigned int max_len;
     bool is_ilu;

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.