From: Timo Heister Date: Wed, 16 Dec 2020 16:47:30 +0000 (-0500) Subject: add override X-Git-Tag: v9.3.0-rc1~737^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11381%2Fhead;p=dealii.git add override --- 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: /**