From c6a0ec06b7edb404c140b87a2e0da52c9562009e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 22 Aug 2017 10:52:37 -0600 Subject: [PATCH] Move a couple of functions out of line. --- include/deal.II/lac/vector_memory.h | 35 ++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/include/deal.II/lac/vector_memory.h b/include/deal.II/lac/vector_memory.h index 405aeb686e..9dd0e4fe79 100644 --- a/include/deal.II/lac/vector_memory.h +++ b/include/deal.II/lac/vector_memory.h @@ -157,11 +157,6 @@ template > class PrimitiveVectorMemory : public VectorMemory { public: - /** - * Constructor. - */ - PrimitiveVectorMemory () = default; - /** * Return a pointer to a new vector. The number of elements or their * subdivision into blocks (if applicable) is unspecified and users of this @@ -171,10 +166,7 @@ public: * For the present class, calling this function will allocate a new vector * on the heap and returning a pointer to it. */ - virtual VectorType *alloc () - { - return new VectorType(); - } + virtual VectorType *alloc (); /** * Return a vector and indicate that it is not going to be used any further @@ -184,10 +176,7 @@ public: * For the present class, this means that the vector is returned to the * global heap. */ - virtual void free (const VectorType *const v) - { - delete v; - } + virtual void free (const VectorType *const v); }; @@ -360,6 +349,26 @@ VectorMemory::Pointer::Pointer(VectorMemory &mem) {} + +template +VectorType * +PrimitiveVectorMemory::alloc () +{ + return new VectorType(); +} + + + +template +void +PrimitiveVectorMemory::free (const VectorType *const v) +{ + delete v; +} + + + + #endif // DOXYGEN DEAL_II_NAMESPACE_CLOSE -- 2.39.5