1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
7 // This file was modified by Oracle on 2017.
8 // Modifications copyright (c) 2017, Oracle and/or its affiliates.
10 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
12 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
13 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
15 // Use, modification and distribution is subject to the Boost Software License,
16 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
19 #ifndef BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
20 #define BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP
22 #include <boost/mpl/assert.hpp>
24 #include <boost/geometry/core/cs.hpp>
25 #include <boost/geometry/core/point_type.hpp>
26 #include <boost/geometry/core/tag.hpp>
27 #include <boost/geometry/core/tags.hpp>
28 #include <boost/geometry/core/tag_cast.hpp>
31 namespace boost { namespace geometry
34 namespace strategy { namespace within
42 \brief Traits class binding a within determination strategy to a coordinate system
44 \tparam GeometryContained geometry-type of input (possibly) contained type
45 \tparam GeometryContaining geometry-type of input (possibly) containing type
46 \tparam TagContained casted tag of (possibly) contained type
47 \tparam TagContaining casted tag of (possibly) containing type
48 \tparam CsTagContained tag of coordinate system of (possibly) contained type
49 \tparam CsTagContaining tag of coordinate system of (possibly) containing type
53 typename GeometryContained,
54 typename GeometryContaining,
55 typename TagContained = typename tag<GeometryContained>::type,
56 typename TagContaining = typename tag<GeometryContaining>::type,
57 typename CastedTagContained = typename tag_cast
59 typename tag<GeometryContained>::type,
60 pointlike_tag, linear_tag, polygonal_tag, areal_tag
62 typename CastedTagContaining = typename tag_cast
64 typename tag<GeometryContaining>::type,
65 pointlike_tag, linear_tag, polygonal_tag, areal_tag
67 typename CsTagContained = typename tag_cast
69 typename cs_tag<typename point_type<GeometryContained>::type>::type,
72 typename CsTagContaining = typename tag_cast
74 typename cs_tag<typename point_type<GeometryContaining>::type>::type,
78 struct default_strategy
82 false, NOT_IMPLEMENTED_FOR_THESE_TYPES
83 , (types<GeometryContained, GeometryContaining>)
88 } // namespace services
91 }} // namespace strategy::within
94 }} // namespace boost::geometry
97 #endif // BOOST_GEOMETRY_STRATEGIES_WITHIN_HPP