]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add override 11381/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 16 Dec 2020 16:47:30 +0000 (11:47 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 17 Dec 2020 16:18:05 +0000 (11:18 -0500)
include/deal.II/base/flow_function.h
include/deal.II/base/function_cspline.h
include/deal.II/base/function_derivative.h
include/deal.II/base/function_lib.h
include/deal.II/base/function_spherical.h

index 5867086d0b897dd0ed1391a07c19fb1b114fe6b2..0e218344e4338cbacf95f33c344a27ee95b0a720 100644 (file)
@@ -114,8 +114,11 @@ namespace Functions
     vector_laplacian_list(const std::vector<Point<dim>> &points,
                           std::vector<Vector<double>> &  values) const override;
 
-    std::size_t
-    memory_consumption() const;
+    /**
+     * Return an estimate for the memory consumption, in bytes, of this object.
+     */
+    virtual std::size_t
+    memory_consumption() const override;
 
   protected:
     /**
index be120e47d4246486c00aa4cdc515c1eef2a07e22..47fbf1f1ccfea57dab6b56ced268ac0e9e8c9ba3 100644 (file)
@@ -103,8 +103,11 @@ namespace Functions
     laplacian(const Point<dim> & p,
               const unsigned int component = 0) const override;
 
-    std::size_t
-    memory_consumption() const;
+    /**
+     * Return an estimate for the memory consumption, in bytes, of this object.
+     */
+    virtual std::size_t
+    memory_consumption() const override;
 
   private:
     /**
index e2aba3874ca5ed220eaf8585ba2a3437e3d63a93..5a48314b4de92357a13489f41548e4c8a405be6d 100644 (file)
@@ -102,8 +102,8 @@ public:
    * This is not exact (but will usually be close) because calculating the
    * memory usage of trees (e.g., <tt>std::map</tt>) is difficult.
    */
-  std::size_t
-  memory_consumption() const;
+  virtual std::size_t
+  memory_consumption() const override;
 
 private:
   /**
index 8e57b2c5a958eb819588965b1381ad31dd527782..e4b9a83c60e125facf64be185efef535a099ccb4 100644 (file)
@@ -647,8 +647,8 @@ namespace Functions
      * calculating the memory usage of trees (e.g., <tt>std::map</tt>) is
      * difficult.
      */
-    std::size_t
-    memory_consumption() const;
+    virtual std::size_t
+    memory_consumption() const override;
 
   protected:
     /**
index 26e1d5eaf4d6486b98ceca424ef6b4d9bf175fbf..44513d8f50390919eea5839bd6b5eda1dac62df9 100644 (file)
@@ -87,8 +87,11 @@ namespace Functions
     hessian(const Point<dim> & p,
             const unsigned int component = 0) const override;
 
-    std::size_t
-    memory_consumption() const;
+    /**
+     * Return an estimate for the memory consumption, in bytes, of this object.
+     */
+    virtual std::size_t
+    memory_consumption() const override;
 
   private:
     /**

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.