Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry (aka GGL, Generic Geometry Library)
0002 
0003 // Copyright (c) 2015-2020, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
0006 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
0007 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0008 
0009 // Distributed under the Boost Software License, Version 1.0.
0010 // (See accompanying file LICENSE_1_0.txt or copy at
0011 // http://www.boost.org/LICENSE_1_0.txt)
0012 
0013 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP
0014 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP
0015 
0016 #include <boost/geometry/core/tags.hpp>
0017 
0018 #include <boost/geometry/algorithms/dispatch/envelope.hpp>
0019 
0020 namespace boost { namespace geometry
0021 {
0022 
0023 
0024 #ifndef DOXYGEN_NO_DISPATCH
0025 namespace dispatch
0026 {
0027 
0028 
0029 template <typename MultiPoint>
0030 struct envelope<MultiPoint, multi_point_tag>
0031 {
0032     template <typename Box, typename Strategy>
0033     static inline void apply(MultiPoint const& multipoint, Box& mbr, Strategy const& strategy)
0034     {
0035         // strategy.envelope(multipoint, mbr).apply(multipoint, mbr);
0036         using strategy_t = decltype(strategy.envelope(multipoint, mbr));
0037         strategy_t::apply(multipoint, mbr);
0038     }
0039 };
0040 
0041 
0042 } // namespace dispatch
0043 #endif // DOXYGEN_NO_DISPATCH
0044 
0045 }} // namespace boost::geometry
0046 
0047 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_MULTIPOINT_HPP