|
||||
File indexing completed on 2025-01-18 09:35:05
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 0007 // This file was modified by Oracle on 2015-2020. 0008 // Modifications copyright (c) 2015-2020, Oracle and/or its affiliates. 0009 0010 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle 0011 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle 0012 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle 0013 0014 // Distributed under the Boost Software License, Version 1.0. 0015 // (See accompanying file LICENSE_1_0.txt or copy at 0016 // http://www.boost.org/LICENSE_1_0.txt) 0017 0018 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP 0019 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP 0020 0021 #include <boost/geometry/core/tags.hpp> 0022 0023 #include <boost/geometry/algorithms/dispatch/envelope.hpp> 0024 0025 namespace boost { namespace geometry 0026 { 0027 0028 #ifndef DOXYGEN_NO_DETAIL 0029 namespace detail { namespace envelope 0030 { 0031 0032 0033 struct envelope_point 0034 { 0035 template <typename Point, typename Box, typename Strategy> 0036 static inline void apply(Point const& point, Box& mbr, Strategy const& strategy) 0037 { 0038 // strategy.envelope(point, mbr).apply(point, mbr); 0039 using strategy_t = decltype(strategy.envelope(point, mbr)); 0040 strategy_t::apply(point, mbr); 0041 } 0042 }; 0043 0044 0045 }} // namespace detail::envelope 0046 #endif // DOXYGEN_NO_DETAIL 0047 0048 #ifndef DOXYGEN_NO_DISPATCH 0049 namespace dispatch 0050 { 0051 0052 0053 template <typename Point> 0054 struct envelope<Point, point_tag> 0055 : detail::envelope::envelope_point 0056 {}; 0057 0058 0059 } // namespace dispatch 0060 #endif // DOXYGEN_NO_DISPATCH 0061 0062 }} // namespace boost::geometry 0063 0064 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_POINT_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |