]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Boost.Geometry (aka GGL, Generic Geometry Library) |
2 | ||
3 | // Copyright (c) 2007-2016 Barend Gehrels, Amsterdam, the Netherlands. | |
4 | ||
5 | // Use, modification and distribution is subject to the Boost Software License, | |
6 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
7 | // http://www.boost.org/LICENSE_1_0.txt) | |
8 | ||
9 | #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_CLUSTER_INFO_HPP | |
10 | #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_CLUSTER_INFO_HPP | |
11 | ||
12 | ||
13 | #include <set> | |
14 | #include <boost/geometry/algorithms/detail/signed_size_type.hpp> | |
15 | ||
16 | ||
17 | namespace boost { namespace geometry | |
18 | { | |
19 | ||
20 | #ifndef DOXYGEN_NO_DETAIL | |
21 | namespace detail { namespace overlay | |
22 | { | |
23 | ||
24 | ||
25 | struct cluster_info | |
26 | { | |
27 | std::set<signed_size_type> turn_indices; | |
28 | ||
29 | bool switch_source; // For clusters with a touch, conform turn_info uu | |
30 | ||
31 | //! Number of open spaces (e.g. 2 for touch) | |
32 | std::size_t open_count; | |
33 | ||
34 | inline cluster_info() | |
35 | : switch_source(false) | |
36 | , open_count(0) | |
37 | {} | |
38 | }; | |
39 | ||
40 | ||
41 | }} // namespace detail::overlay | |
42 | #endif //DOXYGEN_NO_DETAIL | |
43 | ||
44 | ||
45 | }} // namespace boost::geometry | |
46 | ||
47 | ||
48 | #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_CLUSTER_INFO_HPP | |
49 |