Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2021, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0006 
0007 // Licensed under the Boost Software License version 1.0.
0008 // http://www.boost.org/users/license.html
0009 
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_DENSIFY_CARTESIAN_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_DENSIFY_CARTESIAN_HPP
0012 
0013 
0014 #include <boost/geometry/strategies/cartesian/densify.hpp>
0015 
0016 #include <boost/geometry/strategies/detail.hpp>
0017 #include <boost/geometry/strategies/densify/services.hpp>
0018 
0019 #include <boost/geometry/util/type_traits.hpp>
0020 
0021 
0022 namespace boost { namespace geometry
0023 {
0024 
0025 namespace strategies { namespace densify
0026 {
0027 
0028 template <typename CalculationType = void>
0029 struct cartesian
0030     : public strategies::detail::cartesian_base
0031 {
0032     template <typename Geometry>
0033     static auto densify(Geometry const&)
0034     {
0035         return strategy::densify::cartesian<CalculationType>();
0036     }
0037 };
0038 
0039 
0040 namespace services
0041 {
0042 
0043 template <typename Geometry>
0044 struct default_strategy<Geometry, cartesian_tag>
0045 {
0046     using type = strategies::densify::cartesian<>;
0047 };
0048 
0049 
0050 template <typename CT>
0051 struct strategy_converter<strategy::densify::cartesian<CT> >
0052 {
0053     static auto get(strategy::densify::cartesian<CT> const&)
0054     {
0055         return strategies::densify::cartesian<CT>();
0056     }
0057 };
0058 
0059 
0060 } // namespace services
0061 
0062 }} // namespace strategies::densify
0063 
0064 }} // namespace boost::geometry
0065 
0066 #endif // BOOST_GEOMETRY_STRATEGIES_DENSIFY_CARTESIAN_HPP