Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:51

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
0004 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
0005 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
0006 // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
0007 
0008 // This file was modified by Oracle on 2015, 2016, 2017.
0009 // Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
0010 
0011 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
0012 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0013 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0014 
0015 // Distributed under the Boost Software License, Version 1.0.
0016 // (See accompanying file LICENSE_1_0.txt or copy at
0017 // http://www.boost.org/LICENSE_1_0.txt)
0018 
0019 #ifndef BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
0020 #define BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP
0021 
0022 #include <boost/geometry/core/tags.hpp>
0023 
0024 #include <boost/geometry/algorithms/detail/expand/indexed.hpp>
0025 
0026 #include <boost/geometry/strategy/expand.hpp>
0027 
0028 
0029 namespace boost { namespace geometry
0030 {
0031 
0032 namespace strategy { namespace expand
0033 {
0034 
0035 struct cartesian_box
0036 {
0037     template <typename BoxOut, typename BoxIn>
0038     static void apply(BoxOut & box_out, BoxIn const& box_in)
0039     {
0040         geometry::detail::expand::expand_indexed
0041             <
0042                 0, dimension<BoxIn>::value
0043             >::apply(box_out, box_in);
0044     }
0045 };
0046 
0047 
0048 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0049 
0050 namespace services
0051 {
0052 
0053 template <typename CalculationType>
0054 struct default_strategy<box_tag, cartesian_tag, CalculationType>
0055 {
0056     typedef cartesian_box type;
0057 };
0058 
0059 
0060 } // namespace services
0061 
0062 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
0063 
0064 
0065 }} // namespace strategy::expand
0066 
0067 }} // namespace boost::geometry
0068 
0069 #endif // BOOST_GEOMETRY_STRATEGY_CARTESIAN_EXPAND_BOX_HPP