Back to home page

EIC code displayed by LXR

 
 

    


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

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_DISTANCE_SERVICES_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_DISTANCE_SERVICES_HPP
0012 
0013 
0014 #include <boost/geometry/core/cs.hpp>
0015 #include <boost/geometry/core/static_assert.hpp>
0016 
0017 #include <boost/geometry/strategies/detail.hpp>
0018 
0019 
0020 namespace boost { namespace geometry
0021 {
0022 
0023 namespace strategies { namespace distance
0024 {
0025 
0026 namespace services
0027 {
0028 
0029 template
0030 <
0031     typename Geometry1,
0032     typename Geometry2,
0033     typename CSTag1 = typename geometry::cs_tag<Geometry1>::type,
0034     typename CSTag2 = typename geometry::cs_tag<Geometry2>::type
0035 >
0036 struct default_strategy
0037 {
0038     BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
0039         "Not implemented for these Geometries' coordinate systems.",
0040         Geometry1, Geometry2, CSTag1, CSTag2);
0041 };
0042 
0043 template <typename Strategy>
0044 struct strategy_converter
0045 {
0046     static auto get(Strategy const&)
0047     {
0048         return strategies::detail::not_implemented();
0049     }
0050 };
0051 
0052 template
0053 <
0054     typename Geometry1,
0055     typename Geometry2,
0056     typename Strategy,
0057     typename CSTag1 = typename geometry::cs_tag<Geometry1>::type,
0058     typename CSTag2 = typename geometry::cs_tag<Geometry2>::type
0059 >
0060 struct custom_strategy_converter
0061 {
0062     BOOST_GEOMETRY_STATIC_ASSERT_FALSE(
0063         "Not implemented for this Strategy.",
0064         Strategy);
0065 };
0066 
0067 
0068 } // namespace services
0069 
0070 }} // namespace strategies::distance
0071 
0072 }} // namespace boost::geometry
0073 
0074 #endif // BOOST_GEOMETRY_STRATEGIES_DISTANCE_SERVICES_HPP