Chris@102
|
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
|
Chris@102
|
2
|
Chris@102
|
3 // Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands.
|
Chris@102
|
4 // Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
|
Chris@102
|
5 // Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
|
Chris@102
|
6 // Copyright (c) 2013-2014 Adam Wulkiewicz, Lodz, Poland.
|
Chris@102
|
7
|
Chris@102
|
8 // This file was modified by Oracle on 2014.
|
Chris@102
|
9 // Modifications copyright (c) 2014, Oracle and/or its affiliates.
|
Chris@102
|
10
|
Chris@102
|
11 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
|
Chris@102
|
12
|
Chris@102
|
13 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
Chris@102
|
14 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
Chris@102
|
15
|
Chris@102
|
16 // Use, modification and distribution is subject to the Boost Software License,
|
Chris@102
|
17 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@102
|
18 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@102
|
19
|
Chris@102
|
20 #ifndef BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISTANCE_HPP
|
Chris@102
|
21 #define BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISTANCE_HPP
|
Chris@102
|
22
|
Chris@102
|
23
|
Chris@102
|
24 #include <boost/geometry/core/reverse_dispatch.hpp>
|
Chris@102
|
25 #include <boost/geometry/core/tag.hpp>
|
Chris@102
|
26 #include <boost/geometry/core/tag_cast.hpp>
|
Chris@102
|
27 #include <boost/geometry/core/tags.hpp>
|
Chris@102
|
28 #include <boost/geometry/strategies/distance.hpp>
|
Chris@102
|
29 #include <boost/geometry/algorithms/not_implemented.hpp>
|
Chris@102
|
30
|
Chris@102
|
31
|
Chris@102
|
32 namespace boost { namespace geometry
|
Chris@102
|
33 {
|
Chris@102
|
34
|
Chris@102
|
35
|
Chris@102
|
36 #ifndef DOXYGEN_NO_DISPATCH
|
Chris@102
|
37 namespace dispatch
|
Chris@102
|
38 {
|
Chris@102
|
39
|
Chris@102
|
40
|
Chris@102
|
41 template
|
Chris@102
|
42 <
|
Chris@102
|
43 typename Geometry1, typename Geometry2,
|
Chris@102
|
44 typename Strategy = typename detail::distance::default_strategy
|
Chris@102
|
45 <
|
Chris@102
|
46 Geometry1, Geometry2
|
Chris@102
|
47 >::type,
|
Chris@102
|
48 typename Tag1 = typename tag_cast
|
Chris@102
|
49 <
|
Chris@102
|
50 typename tag<Geometry1>::type,
|
Chris@102
|
51 segment_tag,
|
Chris@102
|
52 box_tag,
|
Chris@102
|
53 linear_tag,
|
Chris@102
|
54 areal_tag
|
Chris@102
|
55 >::type,
|
Chris@102
|
56 typename Tag2 = typename tag_cast
|
Chris@102
|
57 <
|
Chris@102
|
58 typename tag<Geometry2>::type,
|
Chris@102
|
59 segment_tag,
|
Chris@102
|
60 box_tag,
|
Chris@102
|
61 linear_tag,
|
Chris@102
|
62 areal_tag
|
Chris@102
|
63 >::type,
|
Chris@102
|
64 typename StrategyTag = typename strategy::distance::services::tag
|
Chris@102
|
65 <
|
Chris@102
|
66 Strategy
|
Chris@102
|
67 >::type,
|
Chris@102
|
68 bool Reverse = reverse_dispatch<Geometry1, Geometry2>::type::value
|
Chris@102
|
69 >
|
Chris@102
|
70 struct distance: not_implemented<Tag1, Tag2>
|
Chris@102
|
71 {};
|
Chris@102
|
72
|
Chris@102
|
73
|
Chris@102
|
74
|
Chris@102
|
75 } // namespace dispatch
|
Chris@102
|
76 #endif // DOXYGEN_NO_DISPATCH
|
Chris@102
|
77
|
Chris@102
|
78
|
Chris@102
|
79 }} // namespace boost::geometry
|
Chris@102
|
80
|
Chris@102
|
81
|
Chris@102
|
82 #endif // BOOST_GEOMETRY_ALGORITHMS_DISPATCH_DISTANCE_HPP
|