]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move a couple of functions out of line.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Aug 2017 16:52:37 +0000 (10:52 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Aug 2017 16:52:37 +0000 (10:52 -0600)
include/deal.II/lac/vector_memory.h

index 405aeb686ef3bdf5d8b222294bfd964bdf61ccdb..9dd0e4fe79bc903c7bedfd1f3c1ee26df6db0089 100644 (file)
@@ -157,11 +157,6 @@ template <typename VectorType = dealii::Vector<double> >
 class PrimitiveVectorMemory : public VectorMemory<VectorType>
 {
 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<VectorType>::Pointer::Pointer(VectorMemory<VectorType> &mem)
 {}
 
 
+
+template <typename VectorType>
+VectorType *
+PrimitiveVectorMemory<VectorType>::alloc ()
+{
+  return new VectorType();
+}
+
+
+
+template <typename VectorType>
+void
+PrimitiveVectorMemory<VectorType>::free (const VectorType *const v)
+{
+  delete v;
+}
+
+
+
+
 #endif // DOXYGEN
 
 DEAL_II_NAMESPACE_CLOSE

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.