segment.hpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
  5. // Copyright (c) 2014-2015 Samuel Debionne, Grenoble, France.
  6. // This file was modified by Oracle on 2015, 2016, 2017, 2018.
  7. // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
  8. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  9. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  10. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  11. // Distributed under the Boost Software License, Version 1.0.
  12. // (See accompanying file LICENSE_1_0.txt or copy at
  13. // http://www.boost.org/LICENSE_1_0.txt)
  14. #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP
  15. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP
  16. #include <boost/core/ignore_unused.hpp>
  17. #include <boost/geometry/algorithms/dispatch/expand.hpp>
  18. #include <boost/geometry/core/tags.hpp>
  19. // For backward compatibility
  20. #include <boost/geometry/strategies/cartesian/expand_segment.hpp>
  21. #include <boost/geometry/strategies/geographic/expand_segment.hpp>
  22. #include <boost/geometry/strategies/spherical/expand_segment.hpp>
  23. namespace boost { namespace geometry
  24. {
  25. #ifndef DOXYGEN_NO_DISPATCH
  26. namespace dispatch
  27. {
  28. template
  29. <
  30. typename Box, typename Segment
  31. >
  32. struct expand
  33. <
  34. Box, Segment,
  35. box_tag, segment_tag
  36. >
  37. {
  38. template <typename Strategy>
  39. static inline void apply(Box& box,
  40. Segment const& segment,
  41. Strategy const& strategy)
  42. {
  43. boost::ignore_unused(strategy);
  44. strategy.apply(box, segment);
  45. }
  46. };
  47. } // namespace dispatch
  48. #endif // DOXYGEN_NO_DISPATCH
  49. }} // namespace boost::geometry
  50. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_EXPAND_SEGMENT_HPP