]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move some BoundingBox access functions to the header. 11659/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 1 Feb 2021 03:38:20 +0000 (22:38 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 1 Feb 2021 03:50:23 +0000 (22:50 -0500)
It's useful to be able to inline these.

include/deal.II/base/bounding_box.h
source/base/bounding_box.cc

index 71ae677b3fd9156c36bb8739f5b484b296919aa3..e00d199907b69b960fc848f669ebaf315be348bf 100644 (file)
@@ -437,6 +437,24 @@ inline BoundingBox<spacedim, Number>::BoundingBox(const Container &points)
 
 
 
+template <int spacedim, typename Number>
+inline std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
+BoundingBox<spacedim, Number>::get_boundary_points()
+{
+  return this->boundary_points;
+}
+
+
+
+template <int spacedim, typename Number>
+inline const std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
+BoundingBox<spacedim, Number>::get_boundary_points() const
+{
+  return this->boundary_points;
+}
+
+
+
 template <int spacedim, typename Number>
 inline bool
 BoundingBox<spacedim, Number>::
index 06aae4e4b7bab0406104bb13bf0e92ab8cecb0c7..98404524723fe1df20c7ca73cb934f653476756a 100644 (file)
@@ -12,6 +12,7 @@
 // the top level directory of deal.II.
 //
 // ---------------------------------------------------------------------
+
 #include <deal.II/base/bounding_box.h>
 #include <deal.II/base/geometry_info.h>
 
@@ -144,24 +145,6 @@ BoundingBox<spacedim, Number>::get_neighbor_type(
 
 
 
-template <int spacedim, typename Number>
-std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
-BoundingBox<spacedim, Number>::get_boundary_points()
-{
-  return this->boundary_points;
-}
-
-
-
-template <int spacedim, typename Number>
-const std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
-BoundingBox<spacedim, Number>::get_boundary_points() const
-{
-  return this->boundary_points;
-}
-
-
-
 template <int spacedim, typename Number>
 double
 BoundingBox<spacedim, Number>::volume() const

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.