within.hpp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  6. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  7. // Use, modification and distribution is subject to the Boost Software License,
  8. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
  11. #define BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
  12. #include <boost/mpl/assert.hpp>
  13. namespace boost { namespace geometry
  14. {
  15. namespace strategy { namespace within
  16. {
  17. namespace services
  18. {
  19. /*!
  20. \brief Traits class binding a within determination strategy to a coordinate system
  21. \ingroup within
  22. \tparam TagContained tag (possibly casted) of point-type
  23. \tparam TagContained tag (possibly casted) of (possibly) containing type
  24. \tparam CsTagContained tag of coordinate system of point-type
  25. \tparam CsTagContaining tag of coordinate system of (possibly) containing type
  26. \tparam Geometry geometry-type of input (often point, or box)
  27. \tparam GeometryContaining geometry-type of input (possibly) containing type
  28. */
  29. template
  30. <
  31. typename TagContained,
  32. typename TagContaining,
  33. typename CastedTagContained,
  34. typename CastedTagContaining,
  35. typename CsTagContained,
  36. typename CsTagContaining,
  37. typename GeometryContained,
  38. typename GeometryContaining
  39. >
  40. struct default_strategy
  41. {
  42. BOOST_MPL_ASSERT_MSG
  43. (
  44. false, NOT_IMPLEMENTED_FOR_THESE_TYPES
  45. , (types<GeometryContained, GeometryContaining>)
  46. );
  47. };
  48. } // namespace services
  49. }} // namespace strategy::within
  50. }} // namespace boost::geometry
  51. #endif // BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP