]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategy/cartesian/expand_box.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / geometry / strategy / cartesian / expand_box.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
7
8 // This file was modified by Oracle on 2015, 2016, 2017.
9 // Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
10
11 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
12 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
13 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
14
15 // Distributed under the Boost Software License, Version 1.0.
16 // (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
18
19 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
20 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
21
22 #include <boost/geometry/core/tags.hpp>
23
24 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
25
26 #include <boost/geometry/strategy/expand.hpp>
27
28
29 namespace boost { namespace geometry
30 {
31
32 namespace strategy { namespace expand
33 {
34
35 struct cartesian_box
36 {
37 template <typename BoxOut, typename BoxIn>
38 static void apply(BoxOut & box_out, BoxIn const& box_in)
39 {
40 geometry::detail::expand::expand_indexed
41 <
42 0, dimension<BoxIn>::value
43 >::apply(box_out, box_in);
44 }
45 };
46
47
48 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
49
50 namespace services
51 {
52
53 template <typename CalculationType>
54 struct default_strategy<box_tag, cartesian_tag, CalculationType>
55 {
56 typedef cartesian_box type;
57 };
58
59
60 } // namespace services
61
62 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
63
64
65 }} // namespace strategy::expand
66
67 }} // namespace boost::geometry
68
69 #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP