distance.hpp 2.2 KB

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