Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:35:06

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-2020.
0009 // Modifications copyright (c) 2015-2020, 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_ALGORITHMS_DETAIL_EXPAND_BOX_HPP
0020 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_BOX_HPP
0021 
0022 
0023 #include <boost/geometry/algorithms/dispatch/expand.hpp>
0024 
0025 #include <boost/geometry/core/tags.hpp>
0026 
0027 
0028 namespace boost { namespace geometry
0029 {
0030 
0031 #ifndef DOXYGEN_NO_DISPATCH
0032 namespace dispatch
0033 {
0034 
0035 
0036 // Box + box -> new box containing two input boxes
0037 template
0038 <
0039     typename BoxOut, typename BoxIn
0040 >
0041 struct expand
0042     <
0043         BoxOut, BoxIn,
0044         box_tag, box_tag
0045     >
0046 {
0047     template <typename Strategy>
0048     static inline void apply(BoxOut& box_out,
0049                              BoxIn const& box_in,
0050                              Strategy const& strategy)
0051     {
0052         // strategy.expand(box_out, box_in).apply(box_out, box_in);
0053         using strategy_t = decltype(strategy.expand(box_out, box_in));
0054         strategy_t::apply(box_out, box_in);
0055     }
0056 };
0057 
0058 
0059 
0060 } // namespace dispatch
0061 #endif // DOXYGEN_NO_DISPATCH
0062 
0063 }} // namespace boost::geometry
0064 
0065 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_INDEXED_HPP