From: Wolfgang Bangerth Date: Mon, 5 Dec 2005 22:32:59 +0000 (+0000) Subject: A few more notes on vector memory's alloc() function. X-Git-Tag: v8.0.0~12809 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dfc711676580e062df4af63f5ef51afc66b19ae;p=dealii.git A few more notes on vector memory's alloc() function. git-svn-id: https://svn.dealii.org/trunk@11827 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/vector_memory.h b/deal.II/lac/include/lac/vector_memory.h index fe9e79b862..ee3195916f 100644 --- a/deal.II/lac/include/lac/vector_memory.h +++ b/deal.II/lac/include/lac/vector_memory.h @@ -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 * 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 * 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