]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/geometry/include/boost/geometry/strategies/distance.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / geometry / include / boost / geometry / strategies / distance.hpp
CommitLineData
7c673cae
FG
1// Boost.Geometry (aka GGL, Generic Geometry Library)
2
3// Copyright (c) 2007-2014 Barend Gehrels, Amsterdam, the Netherlands.
4// Copyright (c) 2008-2014 Bruno Lalande, Paris, France.
5// Copyright (c) 2009-2014 Mateusz Loskot, London, UK.
6
7// This file was modified by Oracle on 2014.
8// Modifications copyright (c) 2014, Oracle and/or its affiliates.
9
10// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
11
12// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
13// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
14
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)
18
19#ifndef BOOST_GEOMETRY_STRATEGIES_DISTANCE_HPP
20#define BOOST_GEOMETRY_STRATEGIES_DISTANCE_HPP
21
22
23#include <boost/mpl/assert.hpp>
24
25#include <boost/geometry/core/cs.hpp>
26#include <boost/geometry/strategies/tags.hpp>
27
28
29namespace boost { namespace geometry
30{
31
32
33namespace strategy { namespace distance { namespace services
34{
35
36
37template <typename Strategy> struct tag {};
38
39template <typename Strategy, typename P1, typename P2>
40struct return_type
41{
42 BOOST_MPL_ASSERT_MSG
43 (
44 false, NOT_IMPLEMENTED_FOR_THIS_STRATEGY, (types<Strategy, P1, P2>)
45 );
46};
47
48
49template <typename Strategy> struct comparable_type
50{
51 BOOST_MPL_ASSERT_MSG
52 (
53 false, NOT_IMPLEMENTED_FOR_THIS_STRATEGY, (types<Strategy>)
54 );
55};
56
57template <typename Strategy> struct get_comparable
58{
59 BOOST_MPL_ASSERT_MSG
60 (
61 false, NOT_IMPLEMENTED_FOR_THIS_STRATEGY, (types<Strategy>)
62 );
63};
64
65template <typename Strategy, typename P1, typename P2>
66struct result_from_distance {};
67
68
69
70
71// Default strategy
72
73
74/*!
75 \brief Traits class binding a default strategy for distance
76 to one (or possibly two) coordinate system(s)
77 \ingroup distance
78 \tparam GeometryTag1 tag (point/segment/box) for which this strategy is the default
79 \tparam GeometryTag2 tag (point/segment/box) for which this strategy is the default
80 \tparam Point1 first point-type
81 \tparam Point2 second point-type
82 \tparam CsTag1 tag of coordinate system of first point type
83 \tparam CsTag2 tag of coordinate system of second point type
84*/
85template
86<
87 typename GeometryTag1,
88 typename GeometryTag2,
89 typename Point1,
90 typename Point2 = Point1,
91 typename CsTag1 = typename cs_tag<Point1>::type,
92 typename CsTag2 = typename cs_tag<Point2>::type,
93 typename UnderlyingStrategy = void
94>
95struct default_strategy
96{
97 BOOST_MPL_ASSERT_MSG
98 (
99 false, NOT_IMPLEMENTED_FOR_THIS_POINT_TYPE_COMBINATION
100 , (types<Point1, Point2, CsTag1, CsTag2>)
101 );
102};
103
104
105}}} // namespace strategy::distance::services
106
107
108}} // namespace boost::geometry
109
110#endif // BOOST_GEOMETRY_STRATEGIES_DISTANCE_HPP