box.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. // This file was modified by Oracle on 2015-2018.
  6. // Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
  8. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  9. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  10. // Distributed under the Boost Software License, Version 1.0.
  11. // (See accompanying file LICENSE_1_0.txt or copy at
  12. // http://www.boost.org/LICENSE_1_0.txt)
  13. #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_BOX_HPP
  14. #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_BOX_HPP
  15. #include <boost/geometry/core/tags.hpp>
  16. // For backward compatibility
  17. #include <boost/geometry/strategies/cartesian/envelope_box.hpp>
  18. #include <boost/geometry/strategies/spherical/envelope_box.hpp>
  19. namespace boost { namespace geometry
  20. {
  21. #ifndef DOXYGEN_NO_DISPATCH
  22. namespace dispatch
  23. {
  24. template <typename Box>
  25. struct envelope<Box, box_tag>
  26. {
  27. template<typename BoxIn, typename BoxOut, typename Strategy>
  28. static inline void apply(BoxIn const& box_in, BoxOut& mbr, Strategy const& )
  29. {
  30. Strategy::apply(box_in, mbr);
  31. }
  32. };
  33. } // namespace dispatch
  34. #endif // DOXYGEN_NO_DISPATCH
  35. }} // namespace boost::geometry
  36. #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_ENVELOPE_BOX_HPP