]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Phony value type added
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Oct 2002 11:42:34 +0000 (11:42 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Oct 2002 11:42:34 +0000 (11:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@6723 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/pointer_matrix.h

index bd89093c7570ecf604618b512966b64e2ef873c8..2344ea56de8a10400185961cc56153f212393305 100644 (file)
 template<class VECTOR>
 class PointerMatrixBase : public Subscriptor
 {
-public:
-                                  /**
-                                   * Virtual destructor.  Does
-                                   * nothing except making sure that
-                                   * the destructor of the derived
-                                   * class is called.
-                                   */
+  public:
+                                    /**
+                                     * Value type of this
+                                     * matrix. since the matrix
+                                     * itself is unknown, we take the
+                                     * value type of the
+                                     * vector. Therefore, matrix
+                                     * entries must be convertible to
+                                     * vector entries.
+                                     *
+                                     * This was defined to make this
+                                     * matrix a possible template
+                                     * argument to
+                                     * @ref{BlockMatrixArray}.
+                                     */
+    typedef typename VECTOR::value_type value_type;
+    
+                                    /**
+                                     * Virtual destructor.  Does
+                                     * nothing except making sure that
+                                     * the destructor of the derived
+                                     * class is called.
+                                     */
   virtual ~PointerMatrixBase ();
 
                                   /**

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.