From: David Wells Date: Mon, 1 Feb 2021 03:38:20 +0000 (-0500) Subject: Move some BoundingBox access functions to the header. X-Git-Tag: v9.3.0-rc1~526^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11659%2Fhead;p=dealii.git Move some BoundingBox access functions to the header. It's useful to be able to inline these. --- 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