Removed obsolete files

Moved two not-used experimental views to extensions/util
Moved for_each_range from util to algorithm/detail and to namespace detail


[SVN r70056]
This commit is contained in:
Barend Gehrels
2011-03-17 13:00:19 +00:00
parent ecd12623d3
commit c800f15ff0
14 changed files with 21 additions and 71 deletions

View File

@@ -6,8 +6,8 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP
#define BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP
#include <boost/concept/requires.hpp>
@@ -95,6 +95,8 @@ struct for_each_range<polygon_tag, Polygon, Actor, IsConst>
} // namespace dispatch
#endif // DOXYGEN_NO_DISPATCH
namespace detail
{
template <typename Geometry, typename Actor>
inline void for_each_range(Geometry const& geometry, Actor& actor)
@@ -109,7 +111,10 @@ inline void for_each_range(Geometry const& geometry, Actor& actor)
}
}
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP
#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP

View File

@@ -409,7 +409,7 @@ public:
typedef typename boost::range_value<Turns>::type ip_type;
typedef typename ip_type::point_type point_type;
typedef model::box<point_type> box_type;
typedef typename geometry::sections<box_type, 1> sections_type;
typedef typename geometry::sections<box_type, 2> sections_type;
sections_type sec1, sec2;
@@ -427,7 +427,7 @@ public:
geometry::partition
<
box_type, get_section_box, ovelaps_section_box
>::apply(sec1, sec2, visitor, 4);
>::apply(sec1, sec2, visitor);
}
};

View File

@@ -1 +0,0 @@
// obsolete

View File

@@ -10,7 +10,7 @@
#include <boost/geometry/multi/iterators/range_type.hpp>
#include <boost/geometry/multi/util/for_each_range.hpp>
#include <boost/geometry/multi/algorithms/detail/for_each_range.hpp>
// Note that this file is, furthermore, empty,
// there is no specialization necessary

View File

@@ -6,14 +6,14 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP
#define BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP
#ifndef BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP
#define BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP
#include <boost/range.hpp>
#include <boost/typeof/typeof.hpp>
#include <boost/geometry/util/for_each_range.hpp>
#include <boost/geometry/algorithms/detail/for_each_range.hpp>
#include <boost/geometry/multi/core/tags.hpp>
@@ -36,7 +36,7 @@ struct fe_range_multi
{
for(BOOST_AUTO(it, boost::begin(multi)); it != boost::end(multi); ++it)
{
geometry::for_each_range(*it, actor);
geometry::detail::for_each_range(*it, actor);
}
}
};
@@ -78,4 +78,4 @@ struct for_each_range<multi_polygon_tag, Geometry, Actor, IsConst>
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP
#endif // BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP

View File

@@ -1 +0,0 @@
// obsolete

View File

@@ -23,7 +23,7 @@
#include <boost/geometry/policies/compare.hpp>
#include <boost/geometry/util/for_each_range.hpp>
#include <boost/geometry/algorithms/detail/for_each_range.hpp>
#include <boost/geometry/views/reversible_view.hpp>
@@ -287,7 +287,7 @@ public:
geometry::less<point_type, 0>,
geometry::greater<point_type, 0>
> extremes;
geometry::for_each_range(geometry, extremes);
geometry::detail::for_each_range(geometry, extremes);
// Bounding left/right points
// Second pass, now that extremes are found, assign all points
@@ -300,7 +300,7 @@ public:
typename strategy_side<cs_tag>::type
> assigner(extremes.left, extremes.right);
geometry::for_each_range(geometry, assigner);
geometry::detail::for_each_range(geometry, assigner);
// Sort both collections, first on x(, then on y)
@@ -382,7 +382,7 @@ private:
template <iterate_direction Direction, typename OutputIterator>
static inline void output_range(container_type const& range,
static inline void output_range(container_type const& range,
OutputIterator out, bool skip_first)
{
typedef typename reversible_view<container_type const, Direction>::type view_type;

View File

@@ -1,51 +0,0 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright Barend Gehrels 2010, Geodan, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GEOMETRY_UTIL_ENSURE_CONST_REFERENCE_HPP
#define BOOST_GEOMETRY_UTIL_ENSURE_CONST_REFERENCE_HPP
#ifdef OBSOLETE
#include <boost/mpl/if.hpp>
#include <boost/type_traits.hpp>
namespace boost { namespace geometry
{
/*!
\brief Meta-function to change a & into a const&, if it is a reference,
otherwise it is the original
\ingroup utility
\note This traits class is completely independant from Boost.Geometry
and might be a separate addition to Boost
\note Used in a.o. interior_rings, exterior_ring
*/
template <typename T>
struct ensure_const_reference
{
typedef typename mpl::if_
<
typename boost::is_reference<T>::type,
typename boost::add_reference
<
typename boost::add_const
<
typename boost::remove_reference<T>::type
>::type
>::type,
T
>::type type;
};
}} // namespace boost::geometry
#endif
#endif // BOOST_GEOMETRY_UTIL_ENSURE_CONST_REFERENCE_HPP

View File

@@ -54,7 +54,7 @@ struct reversible_view<Range, iterate_reverse>
#if BOOST_VERSION > 104500
typedef boost::reversed_range<Range> type;
#else
// For Boost.Release:
// For older versions of Boost
typedef boost::range_detail::reverse_range<Range> type;
#endif
};