From 99d9a7eb1a7afb9ed4d7c97b5520a2360f4c50ba Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 16 Dec 2020 11:47:30 -0500 Subject: [PATCH] add override --- include/deal.II/base/flow_function.h | 7 +++++-- include/deal.II/base/function_cspline.h | 7 +++++-- include/deal.II/base/function_derivative.h | 4 ++-- include/deal.II/base/function_lib.h | 4 ++-- include/deal.II/base/function_spherical.h | 7 +++++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/include/deal.II/base/flow_function.h b/include/deal.II/base/flow_function.h index 5867086d0b..0e218344e4 100644 --- a/include/deal.II/base/flow_function.h +++ b/include/deal.II/base/flow_function.h @@ -114,8 +114,11 @@ namespace Functions vector_laplacian_list(const std::vector> &points, std::vector> & 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: /** diff --git a/include/deal.II/base/function_cspline.h b/include/deal.II/base/function_cspline.h index be120e47d4..47fbf1f1cc 100644 --- a/include/deal.II/base/function_cspline.h +++ b/include/deal.II/base/function_cspline.h @@ -103,8 +103,11 @@ namespace Functions laplacian(const Point & 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: /** diff --git a/include/deal.II/base/function_derivative.h b/include/deal.II/base/function_derivative.h index e2aba3874c..5a48314b4d 100644 --- a/include/deal.II/base/function_derivative.h +++ b/include/deal.II/base/function_derivative.h @@ -102,8 +102,8 @@ public: * This is not exact (but will usually be close) because calculating the * memory usage of trees (e.g., std::map) is difficult. */ - std::size_t - memory_consumption() const; + virtual std::size_t + memory_consumption() const override; private: /** diff --git a/include/deal.II/base/function_lib.h b/include/deal.II/base/function_lib.h index 8e57b2c5a9..e4b9a83c60 100644 --- a/include/deal.II/base/function_lib.h +++ b/include/deal.II/base/function_lib.h @@ -647,8 +647,8 @@ namespace Functions * calculating the memory usage of trees (e.g., std::map) is * difficult. */ - std::size_t - memory_consumption() const; + virtual std::size_t + memory_consumption() const override; protected: /** diff --git a/include/deal.II/base/function_spherical.h b/include/deal.II/base/function_spherical.h index 26e1d5eaf4..44513d8f50 100644 --- a/include/deal.II/base/function_spherical.h +++ b/include/deal.II/base/function_spherical.h @@ -87,8 +87,11 @@ namespace Functions hessian(const Point & 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: /** -- 2.39.5