]> https://gitweb.dealii.org/ - dealii.git/commitdiff
A few more notes on vector memory's alloc() function.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Dec 2005 22:32:59 +0000 (22:32 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Dec 2005 22:32:59 +0000 (22:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@11827 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector_memory.h

index fe9e79b862c041bce6ee7172141e3226c50b6476..ee3195916f06338951320b82bbedbc5d31b8ba78 100644 (file)
@@ -82,9 +82,11 @@ class VectorMemory : public Subscriptor
                                      * blocks (if applicable) is
                                      * unspecified and users of this
                                      * function should reset vectors
-                                     * to their proper size.
+                                     * to their proper size. The same
+                                     * holds for the contents of
+                                     * vectors: they are unspecified.
                                      */
-    virtual VECTOR* alloc() = 0;
+    virtual VECTOR* alloc () = 0;
     
                                     /**
                                      * Return a vector and indicate
@@ -137,14 +139,16 @@ class PrimitiveVectorMemory : public VectorMemory<VECTOR>
                                      * blocks (if applicable) is
                                      * unspecified and users of this
                                      * function should reset vectors
-                                     * to their proper size.
+                                     * to their proper size. The same
+                                     * holds for the contents of
+                                     * vectors: they are unspecified.
                                      *
                                      * For the present class, calling
                                      * this function will allocate a
                                      * new vector on the heap and
                                      * returning a pointer to it.
                                      */
-    virtual VECTOR* alloc()
+    virtual VECTOR* alloc ()
       {
        return new VECTOR();
       }
@@ -220,9 +224,11 @@ class GrowingVectorMemory : public VectorMemory<VECTOR>
                                      * blocks (if applicable) is
                                      * unspecified and users of this
                                      * function should reset vectors
-                                     * to their proper size.
+                                     * to their proper size. The same
+                                     * holds for the contents of
+                                     * vectors: they are unspecified.
                                      */
-    virtual VECTOR* alloc();
+    virtual VECTOR* alloc ();
     
                                     /**
                                      * Return a vector and indicate

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.