1 // Boost.Geometry (aka GGL, Generic Geometry Library)
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.
8 // This file was modified by Oracle on 2015, 2016, 2017.
9 // Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
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
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)
19 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
20 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
22 #include <boost/geometry/core/tags.hpp>
24 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
26 #include <boost/geometry/strategy/expand.hpp>
29 namespace boost { namespace geometry
32 namespace strategy { namespace expand
37 template <typename BoxOut, typename BoxIn>
38 static void apply(BoxOut & box_out, BoxIn const& box_in)
40 geometry::detail::expand::expand_indexed
42 0, dimension<BoxIn>::value
43 >::apply(box_out, box_in);
48 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
53 template <typename CalculationType>
54 struct default_strategy<box_tag, cartesian_tag, CalculationType>
56 typedef cartesian_box type;
60 } // namespace services
62 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
65 }} // namespace strategy::expand
67 }} // namespace boost::geometry
69 #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP