3 // Copyright (c) 2014 Adam Wulkiewicz, Lodz, Poland.
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)
9 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_INTERIOR_ITERATOR_HPP
10 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_INTERIOR_ITERATOR_HPP
12 #include <boost/range/iterator.hpp>
13 #include <boost/range/value_type.hpp>
15 #include <boost/geometry/core/interior_type.hpp>
17 namespace boost { namespace geometry
20 #ifndef DOXYGEN_NO_DETAIL
25 \brief Structure defining the type of interior rings iterator
26 \note If the Geometry is const, const iterator is defined.
27 \tparam Geometry \tparam_geometry
29 template <typename Geometry>
30 struct interior_iterator
32 typedef typename boost::range_iterator
34 typename geometry::interior_type<Geometry>::type
38 template <typename BaseT, typename T>
44 template <typename BaseT, typename T>
45 struct copy_const<BaseT const, T>
50 template <typename Geometry>
51 struct interior_ring_iterator
53 typedef typename boost::range_iterator
57 typename geometry::interior_type<Geometry>::type,
58 typename boost::range_value
60 typename geometry::interior_type<Geometry>::type
67 #endif // DOXYGEN_NO_DETAIL
69 }} // namespace boost::geometry
71 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_INTERIOR_ITERATOR_HPP