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 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
0016 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
0017 
0018 // Distributed under the Boost Software License, Version 1.0.
0019 // (See accompanying file LICENSE_1_0.txt or copy at
0020 // http://www.boost.org/LICENSE_1_0.txt)
0021 
0022 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP
0023 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP
0024 
0025 
0026 #include <boost/geometry/algorithms/dispatch/expand.hpp>
0027 
0028 #include <boost/geometry/core/tags.hpp>
0029 
0030 
0031 namespace boost { namespace geometry
0032 {
0033 
0034 #ifndef DOXYGEN_NO_DISPATCH
0035 namespace dispatch
0036 {
0037 
0038 
0039 // Box + point -> new box containing also point
0040 template
0041 <
0042     typename BoxOut, typename Point
0043 >
0044 struct expand
0045     <
0046         BoxOut, Point,
0047         box_tag, point_tag
0048     >
0049 {
0050     template <typename Strategy>
0051     static inline void apply(BoxOut& box,
0052                              Point const& point,
0053                              Strategy const& strategy)
0054     {
0055         // strategy.expand(box, point).apply(box, point);
0056         using strategy_t = decltype(strategy.expand(box, point));
0057         strategy_t::apply(box, point);
0058     }
0059 };
0060 
0061 
0062 
0063 } // namespace dispatch
0064 #endif // DOXYGEN_NO_DISPATCH
0065 
0066 }} // namespace boost::geometry
0067 
0068 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_POINT_HPP