From: brian <brian@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Thu, 22 May 2003 15:11:24 +0000 (+0000)
Subject: added empty(), and changed inheritance
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64cc37ed85e4c27e1ab27cfe3699a8bc6179466a;p=dealii-svn.git

added empty(), and changed inheritance


git-svn-id: https://svn.dealii.org/trunk@7667 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/deal.II/lac/include/lac/sparse_decomposition.h b/deal.II/lac/include/lac/sparse_decomposition.h
index 8877120d9e..5ba88fd694 100644
--- a/deal.II/lac/include/lac/sparse_decomposition.h
+++ b/deal.II/lac/include/lac/sparse_decomposition.h
@@ -119,7 +119,8 @@
  * Hartmann, 2003
  */
 template <typename number>
-class SparseLUDecomposition : protected SparseMatrix<number>
+class SparseLUDecomposition : protected SparseMatrix<number>, 
+                              public virtual Subscriptor
 {
   public:
 
@@ -283,6 +284,7 @@ class SparseLUDecomposition : protected SparseMatrix<number>
 				      * compability. It will be removed
 				      * in later versions.
 				      */
+
     void reinit ();
 
 				     /**
@@ -311,6 +313,13 @@ class SparseLUDecomposition : protected SparseMatrix<number>
                                       */ 
     virtual bool is_decomposed () const;	
 
+				     /**
+				      * Return whether the object is
+				      * empty. It calls the inherited
+				      * SparseMatrix::empty() function.
+				      */
+    bool empty () const;
+
 				     /**
 				      * Determine an estimate for the
 				      * memory consumption (in bytes)
@@ -451,6 +460,15 @@ SparseLUDecomposition<number>::is_decomposed () const
 
 
 
+template <typename number>
+inline bool 
+SparseLUDecomposition<number>::empty () const 
+{
+  return SparseMatrix<number>::empty(); 
+}
+
+
+
 //----------------------------------------------------------------------//