Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67070 - in sandbox/geometry/boost/geometry: algorithms/detail/overlay geometries/adapted
From: barend.gehrels_at_[hidden]
Date: 2010-12-06 13:34:01


Author: barendgehrels
Date: 2010-12-06 13:33:53 EST (Mon, 06 Dec 2010)
New Revision: 67070
URL: http://svn.boost.org/trac/boost/changeset/67070

Log:
Small updates in comment and in new Boost.Polygon ring adaptor
Text files modified:
   sandbox/geometry/boost/geometry/algorithms/detail/overlay/get_turns.hpp | 2 +-
   sandbox/geometry/boost/geometry/geometries/adapted/boost_polygon_ring.hpp | 30 +++++++-----------------------
   2 files changed, 8 insertions(+), 24 deletions(-)

Modified: sandbox/geometry/boost/geometry/algorithms/detail/overlay/get_turns.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/algorithms/detail/overlay/get_turns.hpp (original)
+++ sandbox/geometry/boost/geometry/algorithms/detail/overlay/get_turns.hpp 2010-12-06 13:33:53 EST (Mon, 06 Dec 2010)
@@ -396,7 +396,7 @@
     }
 
 
- // Divide and conquer (suggested by Luke during GGL Formal Review)
+ // Divide and conquer (suggested by Luke during Boost.Geometry Formal Review)
     template
         <
             std::size_t Dimension,

Modified: sandbox/geometry/boost/geometry/geometries/adapted/boost_polygon_ring.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/geometries/adapted/boost_polygon_ring.hpp (original)
+++ sandbox/geometry/boost/geometry/geometries/adapted/boost_polygon_ring.hpp 2010-12-06 13:33:53 EST (Mon, 06 Dec 2010)
@@ -9,6 +9,7 @@
 #define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_POLYGON_RING_HPP
 
 // Adapts Geometries from Boost.Polygon for usage in Boost.Geometry
+// boost::polygon::polygon_data -> boost::geometry::ring
 
 #include <cstddef>
 
@@ -40,32 +41,15 @@
 #endif // DOXYGEN_NO_TRAITS_SPECIALIZATIONS
 
 
-// ----------------------------------------------------------------------------
-// Boost.Polygon's polygon is not Boost.Range compatible so we have to add support here
-// 1. range_value<...>::type
-// 2. iterators
-// ----------------------------------------------------------------------------
-
-// range_value<...>::type -> avoid this to provide direct support within Boost.Geometry
-namespace core_dispatch
-{
-
-template <typename CoordinateType>
-struct point_type<ring_tag, boost::polygon::polygon_data<CoordinateType> >
-{
- typedef typename boost::polygon::polygon_traits
- <
- boost::polygon::polygon_data<CoordinateType>
- >::point_type type;
-};
+}} // namespace boost::geometry
 
-} // namespace core_dispatch
 
 
-}} // namespace boost::geometry
-
+// ----------------------------------------------------------------------------
+// Boost.Polygon's polygon is not Boost.Range compatible
+// So support below
+// ----------------------------------------------------------------------------
 
-// 2. iterators, adapt Boost.Polygon to Boost.Range
 namespace boost
 {
     template<typename CoordinateType>
@@ -96,7 +80,7 @@
 } // namespace 'boost'
 
 
-// 2b. free-standing function for Boost.Range ADP
+// Free-standing function for Boost.Range ADP
 template<typename CoordinateType>
 inline typename boost::polygon::polygon_traits
         <


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