comparison DEPENDENCIES/generic/include/boost/geometry/multi/geometries/concepts/check.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
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.
6
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
9
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
13
14
15 #ifndef BOOST_GEOMETRY_MULTI_GEOMETRIES_CONCEPTS_CHECK_HPP
16 #define BOOST_GEOMETRY_MULTI_GEOMETRIES_CONCEPTS_CHECK_HPP
17
18
19
20 #include <boost/type_traits/is_const.hpp>
21
22 #include <boost/geometry/multi/core/tags.hpp>
23
24 #include <boost/geometry/geometries/concepts/check.hpp>
25 #include <boost/geometry/multi/geometries/concepts/multi_point_concept.hpp>
26 #include <boost/geometry/multi/geometries/concepts/multi_linestring_concept.hpp>
27 #include <boost/geometry/multi/geometries/concepts/multi_polygon_concept.hpp>
28
29
30 namespace boost { namespace geometry
31 {
32
33
34
35 #ifndef DOXYGEN_NO_DISPATCH
36 namespace dispatch
37 {
38
39
40 template <typename Geometry>
41 struct check<Geometry, multi_point_tag, true>
42 : detail::concept_check::check<concept::ConstMultiPoint<Geometry> >
43 {};
44
45
46 template <typename Geometry>
47 struct check<Geometry, multi_point_tag, false>
48 : detail::concept_check::check<concept::MultiPoint<Geometry> >
49 {};
50
51
52 template <typename Geometry>
53 struct check<Geometry, multi_linestring_tag, true>
54 : detail::concept_check::check<concept::ConstMultiLinestring<Geometry> >
55 {};
56
57
58 template <typename Geometry>
59 struct check<Geometry, multi_linestring_tag, false>
60 : detail::concept_check::check<concept::MultiLinestring<Geometry> >
61 {};
62
63
64 template <typename Geometry>
65 struct check<Geometry, multi_polygon_tag, true>
66 : detail::concept_check::check<concept::ConstMultiPolygon<Geometry> >
67 {};
68
69
70 template <typename Geometry>
71 struct check<Geometry, multi_polygon_tag, false>
72 : detail::concept_check::check<concept::MultiPolygon<Geometry> >
73 {};
74
75
76 } // namespace dispatch
77 #endif
78
79
80 }} // namespace boost::geometry
81
82
83 #endif // BOOST_GEOMETRY_MULTI_GEOMETRIES_CONCEPTS_CHECK_HPP