Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70056 - in trunk/boost/geometry: algorithms/detail algorithms/detail/overlay core extensions/util extensions/views geometries/concepts/detail multi/algorithms multi/algorithms/detail multi/core multi/util strategies/agnostic util views
From: barend.gehrels_at_[hidden]
Date: 2011-03-17 09:00:27


Author: barendgehrels
Date: 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
New Revision: 70056
URL: http://svn.boost.org/trac/boost/changeset/70056

Log:
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

Added:
   trunk/boost/geometry/algorithms/detail/for_each_range.hpp
      - copied, changed from r69988, /trunk/boost/geometry/util/for_each_range.hpp
   trunk/boost/geometry/extensions/util/
   trunk/boost/geometry/extensions/util/get_cs_as_radian.hpp
      - copied unchanged from r69988, /trunk/boost/geometry/util/get_cs_as_radian.hpp
   trunk/boost/geometry/extensions/views/
   trunk/boost/geometry/extensions/views/enveloped_view.hpp
      - copied unchanged from r69988, /trunk/boost/geometry/views/enveloped_view.hpp
   trunk/boost/geometry/extensions/views/section_view.hpp
      - copied unchanged from r69988, /trunk/boost/geometry/views/section_view.hpp
   trunk/boost/geometry/multi/algorithms/detail/for_each_range.hpp
      - copied, changed from r69988, /trunk/boost/geometry/multi/util/for_each_range.hpp
Removed:
   trunk/boost/geometry/core/is_multi.hpp
   trunk/boost/geometry/geometries/concepts/detail/check_append.hpp
   trunk/boost/geometry/geometries/concepts/detail/check_clear.hpp
   trunk/boost/geometry/multi/core/is_multi.hpp
   trunk/boost/geometry/multi/util/for_each_range.hpp
   trunk/boost/geometry/util/ensure_const_reference.hpp
   trunk/boost/geometry/util/for_each_range.hpp
   trunk/boost/geometry/util/get_cs_as_radian.hpp
   trunk/boost/geometry/views/enveloped_view.hpp
   trunk/boost/geometry/views/section_view.hpp
Text files modified:
   trunk/boost/geometry/algorithms/detail/for_each_range.hpp | 11 ++++++++---
   trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp | 4 ++--
   trunk/boost/geometry/multi/algorithms/convex_hull.hpp | 2 +-
   trunk/boost/geometry/multi/algorithms/detail/for_each_range.hpp | 10 +++++-----
   trunk/boost/geometry/strategies/agnostic/hull_graham_andrew.hpp | 8 ++++----
   trunk/boost/geometry/views/reversible_view.hpp | 2 +-
   6 files changed, 21 insertions(+), 16 deletions(-)

Copied: trunk/boost/geometry/algorithms/detail/for_each_range.hpp (from r69988, /trunk/boost/geometry/util/for_each_range.hpp)
==============================================================================
--- /trunk/boost/geometry/util/for_each_range.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/for_each_range.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -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 @@
 } // 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 @@
 }
 
 
+}
+
+
 }} // namespace boost::geometry
 
 
-#endif // BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP
+#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP

Modified: trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/get_turns.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -409,7 +409,7 @@
         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 @@
         geometry::partition
             <
                 box_type, get_section_box, ovelaps_section_box
- >::apply(sec1, sec2, visitor, 4);
+ >::apply(sec1, sec2, visitor);
     }
 };
 

Deleted: trunk/boost/geometry/core/is_multi.hpp
==============================================================================
--- trunk/boost/geometry/core/is_multi.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete

Deleted: trunk/boost/geometry/geometries/concepts/detail/check_append.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/detail/check_append.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete

Deleted: trunk/boost/geometry/geometries/concepts/detail/check_clear.hpp
==============================================================================
--- trunk/boost/geometry/geometries/concepts/detail/check_clear.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete

Modified: trunk/boost/geometry/multi/algorithms/convex_hull.hpp
==============================================================================
--- trunk/boost/geometry/multi/algorithms/convex_hull.hpp (original)
+++ trunk/boost/geometry/multi/algorithms/convex_hull.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -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

Copied: trunk/boost/geometry/multi/algorithms/detail/for_each_range.hpp (from r69988, /trunk/boost/geometry/multi/util/for_each_range.hpp)
==============================================================================
--- /trunk/boost/geometry/multi/util/for_each_range.hpp (original)
+++ trunk/boost/geometry/multi/algorithms/detail/for_each_range.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -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 @@
     {
         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 @@
 }} // namespace boost::geometry
 
 
-#endif // BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP
+#endif // BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_FOR_EACH_RANGE_HPP

Deleted: trunk/boost/geometry/multi/core/is_multi.hpp
==============================================================================
--- trunk/boost/geometry/multi/core/is_multi.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete

Deleted: trunk/boost/geometry/multi/util/for_each_range.hpp
==============================================================================
--- trunk/boost/geometry/multi/util/for_each_range.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1,81 +0,0 @@
-// Boost.Geometry (aka GGL, Generic Geometry Library)
-//
-// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.
-// Copyright Bruno Lalande 2008, 2009
-// 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_MULTI_UTIL_FOR_EACH_RANGE_HPP
-#define BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP
-
-
-#include <boost/range.hpp>
-#include <boost/typeof/typeof.hpp>
-
-#include <boost/geometry/util/for_each_range.hpp>
-
-#include <boost/geometry/multi/core/tags.hpp>
-
-
-namespace boost { namespace geometry
-{
-
-
-#ifndef DOXYGEN_NO_DETAIL
-namespace detail { namespace for_each
-{
-
-
-template <typename Multi, typename Actor, bool IsConst>
-struct fe_range_multi
-{
- static inline void apply(
- typename add_const_if_c<IsConst, Multi>::type& multi,
- Actor& actor)
- {
- for(BOOST_AUTO(it, boost::begin(multi)); it != boost::end(multi); ++it)
- {
- geometry::for_each_range(*it, actor);
- }
- }
-};
-
-
-
-}} // namespace detail::for_each
-#endif // DOXYGEN_NO_DETAIL
-
-
-#ifndef DOXYGEN_NO_DISPATCH
-namespace dispatch
-{
-
-
-template <typename MultiPoint, typename Actor, bool IsConst>
-struct for_each_range<multi_point_tag, MultiPoint, Actor, IsConst>
- : detail::for_each::fe_range_range<MultiPoint, Actor, IsConst>
-{};
-
-template <typename Geometry, typename Actor, bool IsConst>
-struct for_each_range<multi_linestring_tag, Geometry, Actor, IsConst>
- :
- detail::for_each::fe_range_multi<Geometry, Actor, IsConst>
-{};
-
-template <typename Geometry, typename Actor, bool IsConst>
-struct for_each_range<multi_polygon_tag, Geometry, Actor, IsConst>
- :
- detail::for_each::fe_range_multi<Geometry, Actor, IsConst>
-{};
-
-
-} // namespace dispatch
-#endif // DOXYGEN_NO_DISPATCH
-
-
-
-}} // namespace boost::geometry
-
-
-#endif // BOOST_GEOMETRY_MULTI_UTIL_FOR_EACH_RANGE_HPP

Modified: trunk/boost/geometry/strategies/agnostic/hull_graham_andrew.hpp
==============================================================================
--- trunk/boost/geometry/strategies/agnostic/hull_graham_andrew.hpp (original)
+++ trunk/boost/geometry/strategies/agnostic/hull_graham_andrew.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -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 @@
                 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 @@
                 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 @@
 
 
     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;

Deleted: trunk/boost/geometry/util/ensure_const_reference.hpp
==============================================================================
--- trunk/boost/geometry/util/ensure_const_reference.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty 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

Deleted: trunk/boost/geometry/util/for_each_range.hpp
==============================================================================
--- trunk/boost/geometry/util/for_each_range.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1,115 +0,0 @@
-// Boost.Geometry (aka GGL, Generic Geometry Library)
-//
-// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.
-// Copyright Bruno Lalande 2008, 2009
-// 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_FOR_EACH_RANGE_HPP
-#define BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP
-
-
-#include <boost/concept/requires.hpp>
-
-
-#include <boost/geometry/core/tag.hpp>
-#include <boost/geometry/core/tag_cast.hpp>
-
-#include <boost/geometry/util/add_const_if_c.hpp>
-
-
-namespace boost { namespace geometry
-{
-
-
-#ifndef DOXYGEN_NO_DETAIL
-namespace detail { namespace for_each
-{
-
-
-template <typename Range, typename Actor, bool IsConst>
-struct fe_range_range
-{
- static inline void apply(
- typename add_const_if_c<IsConst, Range>::type& range,
- Actor& actor)
- {
- actor.apply(range);
- }
-};
-
-
-template <typename Polygon, typename Actor, bool IsConst>
-struct fe_range_polygon
-{
- static inline void apply(
- typename add_const_if_c<IsConst, Polygon>::type& polygon,
- Actor& actor)
- {
- actor.apply(exterior_ring(polygon));
-
- // TODO: If some flag says true, also do the inner rings.
- // for convex hull, it's not necessary
- }
-};
-
-
-}} // namespace detail::for_each
-#endif // DOXYGEN_NO_DETAIL
-
-
-#ifndef DOXYGEN_NO_DISPATCH
-namespace dispatch
-{
-
-
-template
-<
- typename Tag,
- typename Geometry,
- typename Actor,
- bool IsConst
->
-struct for_each_range {};
-
-
-template <typename Linestring, typename Actor, bool IsConst>
-struct for_each_range<linestring_tag, Linestring, Actor, IsConst>
- : detail::for_each::fe_range_range<Linestring, Actor, IsConst>
-{};
-
-
-template <typename Ring, typename Actor, bool IsConst>
-struct for_each_range<ring_tag, Ring, Actor, IsConst>
- : detail::for_each::fe_range_range<Ring, Actor, IsConst>
-{};
-
-
-template <typename Polygon, typename Actor, bool IsConst>
-struct for_each_range<polygon_tag, Polygon, Actor, IsConst>
- : detail::for_each::fe_range_polygon<Polygon, Actor, IsConst>
-{};
-
-
-} // namespace dispatch
-#endif // DOXYGEN_NO_DISPATCH
-
-
-template <typename Geometry, typename Actor>
-inline void for_each_range(Geometry const& geometry, Actor& actor)
-{
- dispatch::for_each_range
- <
- typename tag<Geometry>::type,
- Geometry,
- Actor,
- true
- >::apply(geometry, actor);
-}
-
-
-}} // namespace boost::geometry
-
-
-#endif // BOOST_GEOMETRY_UTIL_FOR_EACH_RANGE_HPP

Deleted: trunk/boost/geometry/util/get_cs_as_radian.hpp
==============================================================================
--- trunk/boost/geometry/util/get_cs_as_radian.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1,50 +0,0 @@
-// Boost.Geometry (aka GGL, Generic Geometry Library)
-//
-// Copyright Bruno Lalande 2008, 2009
-// Copyright Barend Gehrels 2007-2009, 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_GET_CS_AS_RADIAN_HPP
-#define BOOST_GEOMETRY_UTIL_GET_CS_AS_RADIAN_HPP
-
-// obsolete? It is not used anymore (get_as_radian is usually OK)
-
-#include <boost/geometry/core/cs.hpp>
-
-namespace boost { namespace geometry
-{
-
-#ifndef DOXYGEN_NO_DETAIL
-namespace detail
-{
-
- /*!
- \brief Small meta-function defining the specified coordinate system,
- but then in radian units
- */
- template <typename CoordinateSystem>
- struct get_cs_as_radian {};
-
- template <typename Units>
- struct get_cs_as_radian<cs::geographic<Units> >
- {
- typedef cs::geographic<radian> type;
- };
-
- template <typename Units>
- struct get_cs_as_radian<cs::spherical<Units> >
- {
- typedef cs::spherical<radian> type;
- };
-
-} // namespace detail
-#endif
-
-
-}} // namespace boost::geometry
-
-
-#endif // BOOST_GEOMETRY_UTIL_GET_CS_AS_RADIAN_HPP

Deleted: trunk/boost/geometry/views/enveloped_view.hpp
==============================================================================
--- trunk/boost/geometry/views/enveloped_view.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1,120 +0,0 @@
-// Boost.Range (aka GGL, Generic Range 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_VIEWS_ENVELOPED_VIEW_HPP
-#define BOOST_GEOMETRY_VIEWS_ENVELOPED_VIEW_HPP
-
-
-// Note the addition of this whole file was committed to SVN by accident,
-// probably obsolete
-
-#include <boost/mpl/if.hpp>
-#include <boost/range.hpp>
-
-#include <boost/geometry/core/ring_type.hpp>
-
-
-namespace boost { namespace geometry
-{
-
-
-
-
-template <typename Range, typename Box, std::size_t Dimension>
-class enveloped_view
-{
-public :
- typedef typename boost::range_iterator<Range const>::type const_iterator;
- typedef typename boost::range_iterator<Range>::type iterator;
-
- explicit enveloped_view(Range& range, Box const& box, int dir)
- : m_begin(boost::begin(range))
- , m_end(boost::end(range))
- {
- find_first(dir, m_begin, m_end, box);
- find_last(dir, m_begin, m_end, box);
-
- // Assignment of const iterator to iterator seems no problem,
- // at least not for MSVC and GCC
- m_const_begin = m_begin;
- m_const_end = m_end;
- // Otherwise: repeat
- //find_first(dir, m_const_begin, m_const_end);
- //find_last(dir, m_const_begin, m_const_end);
- }
-
- const_iterator begin() const { return m_const_begin; }
- const_iterator end() const { return m_const_end; }
-
- iterator begin() { return m_begin; }
- iterator end() { return m_end; }
-
-private :
- const_iterator m_const_begin, m_const_end;
- iterator m_begin, m_end;
-
- template <typename Point>
- inline bool preceding(short int dir, Point const& point, Box const& box)
- {
- return (dir == 1 && get<Dimension>(point) < get<0, Dimension>(box))
- || (dir == -1 && get<Dimension>(point) > get<1, Dimension>(box));
- }
-
- template <typename Point>
- inline bool exceeding(short int dir, Point const& point, Box const& box)
- {
- return (dir == 1 && get<Dimension>(point) > get<1, Dimension>(box))
- || (dir == -1 && get<Dimension>(point) < get<0, Dimension>(box));
- }
-
- template <typename Iterator>
- void find_first(int dir, Iterator& begin, Iterator const end, Box const& box)
- {
- if (begin != end)
- {
- if (exceeding(dir, *begin, box))
- {
- // First obvious check
- begin = end;
- return;
- }
-
- iterator it = begin;
- iterator prev = it++;
- for(; it != end && preceding(dir, *it, box); ++it, ++prev) {}
- begin = prev;
- }
- }
-
- template <typename Iterator>
- void find_last(int dir, Iterator& begin, Iterator& end, Box const& box)
- {
- if (begin != end)
- {
- iterator it = begin;
- iterator prev = it++;
- for(; it != end && ! exceeding(dir, *prev, box); ++it, ++prev) {}
- if (it == end && prev != end && preceding(dir, *prev, box))
- {
- // Last obvious check (not done before to not refer to *(end-1))
- begin = end;
- }
- else
- {
- end = it;
- }
- }
- }
-
-};
-
-
-
-}} // namespace boost::geometry
-
-
-#endif // BOOST_GEOMETRY_VIEWS_ENVELOPED_VIEW_HPP

Modified: trunk/boost/geometry/views/reversible_view.hpp
==============================================================================
--- trunk/boost/geometry/views/reversible_view.hpp (original)
+++ trunk/boost/geometry/views/reversible_view.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
@@ -54,7 +54,7 @@
 #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
 };

Deleted: trunk/boost/geometry/views/section_view.hpp
==============================================================================
--- trunk/boost/geometry/views/section_view.hpp 2011-03-17 09:00:19 EDT (Thu, 17 Mar 2011)
+++ (empty file)
@@ -1,67 +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_VIEWS_SECTION_VIEW_HPP
-#define BOOST_GEOMETRY_VIEWS_SECTION_VIEW_HPP
-
-// Note the addition of this whole file was committed to SVN by accident,
-// probably obsolete
-
-#include <boost/range.hpp>
-
-#include <boost/geometry/core/ring_type.hpp>
-#include <boost/geometry/util/add_const_if_c.hpp>
-
-
-namespace boost { namespace geometry
-{
-
-
-template <typename Geometry, typename Section>
-class section_view
-{
- typedef typename geometry::range_type<Geometry>::type range_type;
-public :
- typedef typename boost::range_iterator
- <
- range_type
- >::type iterator;
- typedef typename boost::range_iterator
- <
- range_type const
- >::type const_iterator;
-
- explicit section_view(Geometry& geometry, Section const& section)
- {
- get_section(geometry, section, m_begin, m_end);
- }
-
- const_iterator begin() const { return m_begin; }
- const_iterator end() const { return m_end; }
- iterator begin() { return m_begin; }
- iterator end() { return m_end; }
-
-private :
- // Might be replaced declaring as BOOST_AUTO
- typedef typename boost::range_iterator
- <
- typename add_const_if_c
- <
- boost::is_const<Geometry>::value,
- range_type
- >::type
- >::type iterator_type;
-
- iterator_type m_begin, m_end;
-};
-
-
-
-}} // namespace boost::geometry
-
-
-#endif // BOOST_GEOMETRY_VIEWS_SECTION_VIEW_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk