From eb9e8a44c6bd635a352f3e922c8bd77cedd2800a Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 31 Jan 2021 22:38:20 -0500 Subject: [PATCH] Move some BoundingBox access functions to the header. It's useful to be able to inline these. --- include/deal.II/base/bounding_box.h | 18 ++++++++++++++++++ source/base/bounding_box.cc | 19 +------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/include/deal.II/base/bounding_box.h b/include/deal.II/base/bounding_box.h index 71ae677b3f..e00d199907 100644 --- a/include/deal.II/base/bounding_box.h +++ b/include/deal.II/base/bounding_box.h @@ -437,6 +437,24 @@ inline BoundingBox::BoundingBox(const Container &points) +template +inline std::pair, Point> & +BoundingBox::get_boundary_points() +{ + return this->boundary_points; +} + + + +template +inline const std::pair, Point> & +BoundingBox::get_boundary_points() const +{ + return this->boundary_points; +} + + + template inline bool BoundingBox:: diff --git a/source/base/bounding_box.cc b/source/base/bounding_box.cc index 06aae4e4b7..9840452472 100644 --- a/source/base/bounding_box.cc +++ b/source/base/bounding_box.cc @@ -12,6 +12,7 @@ // the top level directory of deal.II. // // --------------------------------------------------------------------- + #include #include @@ -144,24 +145,6 @@ BoundingBox::get_neighbor_type( -template -std::pair, Point> & -BoundingBox::get_boundary_points() -{ - return this->boundary_points; -} - - - -template -const std::pair, Point> & -BoundingBox::get_boundary_points() const -{ - return this->boundary_points; -} - - - template double BoundingBox::volume() const -- 2.39.5