Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
bounding_box.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 - 2020 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_boost_adaptor_bounding_box_h
17 #define dealii_boost_adaptor_bounding_box_h
18 
19 #include <deal.II/base/config.h>
20 
22 
26 
27 
28 namespace boost
29 {
30  namespace geometry
31  {
32  namespace traits
33  {
37  template <int dim, class Number>
38  struct tag<::BoundingBox<dim, Number>>
39  {
40  using type = box_tag;
41  };
42 
46  template <int dim, class Number>
47  struct point_type<::BoundingBox<dim, Number>>
48  {
50  };
51 
56  template <int dim, class Number, std::size_t D>
57  struct indexed_access<::BoundingBox<dim, Number>, min_corner, D>
58  {
63  static inline double
65  {
66  return box.get_boundary_points().first[D];
67  }
68 
73  static inline void
75  {
76  box.get_boundary_points().first[D] = value;
77  }
78  };
79 
84  template <int dim, class Number, std::size_t D>
85  struct indexed_access<::BoundingBox<dim, Number>, max_corner, D>
86  {
91  static inline double
93  {
94  return box.get_boundary_points().second[D];
95  }
96 
101  static inline void
103  {
104  box.get_boundary_points().second[D] = value;
105  }
106  };
107  } // namespace traits
108  } // namespace geometry
109 } // namespace boost
110 
111 #endif
bounding_box.h
boost
Definition: bounding_box.h:28
BoundingBox
Definition: bounding_box.h:128
boost::geometry::traits::indexed_access<::BoundingBox< dim, Number >, max_corner, D >::get
static double get(::BoundingBox< dim, Number > const &box)
Definition: bounding_box.h:92
DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
Definition: config.h:409
boost::geometry::traits::indexed_access<::BoundingBox< dim, Number >, max_corner, D >::set
static void set(::BoundingBox< dim, Number > &box, Number value)
Definition: bounding_box.h:102
value
static const bool value
Definition: dof_tools_constraints.cc:433
boost::geometry::traits::indexed_access<::BoundingBox< dim, Number >, min_corner, D >::get
static double get(::BoundingBox< dim, Number > const &box)
Definition: bounding_box.h:64
Point
Definition: point.h:111
config.h
boost::geometry::traits::tag<::BoundingBox< dim, Number > >::type
box_tag type
Definition: bounding_box.h:40
BoundingBox::get_boundary_points
std::pair< Point< spacedim, Number >, Point< spacedim, Number > > & get_boundary_points()
Definition: bounding_box.cc:150
point.h
boost::geometry::traits::indexed_access<::BoundingBox< dim, Number >, min_corner, D >::set
static void set(::BoundingBox< dim, Number > &box, Number value)
Definition: bounding_box.h:74
DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
#define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
Definition: config.h:372