Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70854 - in trunk/libs/geometry: example test/algorithms test/algorithms/detail test/algorithms/overlay test/extensions/algorithms test/multi/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-04-02 09:31:07


Author: barendgehrels
Date: 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
New Revision: 70854
URL: http://svn.boost.org/trac/boost/changeset/70854

Log:
Reflects renaming things

Text files modified:
   trunk/libs/geometry/example/08_units_example.cpp | 4 ++--
   trunk/libs/geometry/test/algorithms/comparable_distance.cpp | 2 +-
   trunk/libs/geometry/test/algorithms/detail/partition.cpp | 2 +-
   trunk/libs/geometry/test/algorithms/distance.cpp | 6 +++---
   trunk/libs/geometry/test/algorithms/intersection.cpp | 2 +-
   trunk/libs/geometry/test/algorithms/overlay/assemble.cpp | 2 +-
   trunk/libs/geometry/test/algorithms/overlay/traverse.cpp | 2 +-
   trunk/libs/geometry/test/algorithms/test_area.hpp | 8 ++++----
   trunk/libs/geometry/test/algorithms/test_convex_hull.hpp | 2 +-
   trunk/libs/geometry/test/algorithms/test_difference.hpp | 2 +-
   trunk/libs/geometry/test/algorithms/test_distance.hpp | 4 ++--
   trunk/libs/geometry/test/algorithms/test_intersection.hpp | 6 +++---
   trunk/libs/geometry/test/algorithms/test_length.hpp | 4 ++--
   trunk/libs/geometry/test/algorithms/test_perimeter.hpp | 2 +-
   trunk/libs/geometry/test/algorithms/test_union.hpp | 4 ++--
   trunk/libs/geometry/test/extensions/algorithms/connect.cpp | 2 +-
   trunk/libs/geometry/test/extensions/algorithms/dissolve.cpp | 2 +-
   trunk/libs/geometry/test/extensions/algorithms/offset.cpp | 2 +-
   trunk/libs/geometry/test/multi/algorithms/multi_distance.cpp | 4 ++--
   19 files changed, 31 insertions(+), 31 deletions(-)

Modified: trunk/libs/geometry/example/08_units_example.cpp
==============================================================================
--- trunk/libs/geometry/example/08_units_example.cpp (original)
+++ trunk/libs/geometry/example/08_units_example.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -153,10 +153,10 @@
 
 
     template <typename Geometry1, typename Geometry2>
- inline typename quantity<Geometry1, typename distance_result<Geometry1, Geometry2>::type>::type
+ inline typename quantity<Geometry1, typename default_distance_result<Geometry1, Geometry2>::type>::type
         distance(Geometry1 const& g1, Geometry2 const& g2)
     {
- typedef typename quantity<Geometry1, typename distance_result<Geometry1, Geometry2>::type>::type q;
+ typedef typename quantity<Geometry1, typename default_distance_result<Geometry1, Geometry2>::type>::type q;
         return q::from_value(geometry::distance(g1, g2));
     }
 

Modified: trunk/libs/geometry/test/algorithms/comparable_distance.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/comparable_distance.cpp (original)
+++ trunk/libs/geometry/test/algorithms/comparable_distance.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -27,7 +27,7 @@
 template <typename P>
 void test_distance_result()
 {
- typedef typename bg::distance_result<P, P>::type distance_type;
+ typedef typename bg::default_distance_result<P, P>::type distance_type;
 
     P p1 = bg::make<P>(0, 0);
     P p2 = bg::make<P>(3, 0);

Modified: trunk/libs/geometry/test/algorithms/detail/partition.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/detail/partition.cpp (original)
+++ trunk/libs/geometry/test/algorithms/detail/partition.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -61,7 +61,7 @@
 struct box_visitor
 {
     int count;
- typename bg::area_result<Box>::type area;
+ typename bg::default_area_result<Box>::type area;
 
     box_visitor()
         : count(0)

Modified: trunk/libs/geometry/test/algorithms/distance.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/distance.cpp (original)
+++ trunk/libs/geometry/test/algorithms/distance.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -28,7 +28,7 @@
 void test_distance_point()
 {
     namespace services = bg::strategy::distance::services;
- typedef typename bg::distance_result<P>::type return_type;
+ typedef typename bg::default_distance_result<P>::type return_type;
 
     // Basic, trivial test
 
@@ -79,7 +79,7 @@
 template <typename P>
 void test_distance_segment()
 {
- typedef typename bg::distance_result<P>::type return_type;
+ typedef typename bg::default_distance_result<P>::type return_type;
     typedef typename bg::coordinate_type<P>::type coordinate_type;
 
     P s1; bg::set<0>(s1, 1); bg::set<1>(s1, 1);
@@ -134,7 +134,7 @@
 template <typename P>
 void test_distance_array_as_linestring()
 {
- typedef typename bg::distance_result<P>::type return_type;
+ typedef typename bg::default_distance_result<P>::type return_type;
 
     // Normal array does not have
     boost::array<P, 2> points;

Modified: trunk/libs/geometry/test/algorithms/intersection.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/intersection.cpp (original)
+++ trunk/libs/geometry/test/algorithms/intersection.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -217,7 +217,7 @@
 
     Box box_out;
     bool detected = bg::intersection(box1, box2, box_out);
- typename bg::area_result<Box>::type area = bg::area(box_out);
+ typename bg::default_area_result<Box>::type area = bg::area(box_out);
 
     BOOST_CHECK_EQUAL(detected, expected_result);
     if (detected && expected_result)

Modified: trunk/libs/geometry/test/algorithms/overlay/assemble.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/overlay/assemble.cpp (original)
+++ trunk/libs/geometry/test/algorithms/overlay/assemble.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -46,7 +46,7 @@
 
     if (operation == 'i')
     {
- typedef typename bg::area_result<Geometry>::type type;
+ typedef typename bg::default_area_result<Geometry>::type type;
         type area_p = bg::area(p);
         type area_q = bg::area(q);
 

Modified: trunk/libs/geometry/test/algorithms/overlay/traverse.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/overlay/traverse.cpp (original)
+++ trunk/libs/geometry/test/algorithms/overlay/traverse.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -168,7 +168,7 @@
                 );
 
         // Check total area of resulting rings
- typename bg::area_result<G1>::type total_area = 0;
+ typename bg::default_area_result<G1>::type total_area = 0;
         BOOST_FOREACH(ring_type const& ring, v)
         {
             total_area += bg::area(ring);

Modified: trunk/libs/geometry/test/algorithms/test_area.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_area.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_area.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -19,15 +19,15 @@
 
 template <typename Geometry>
 void test_area(Geometry const& geometry,
- typename bg::area_result<Geometry>::type expected_area)
+ typename bg::default_area_result<Geometry>::type expected_area)
 {
- typename bg::area_result<Geometry>::type area = bg::area(geometry);
+ typename bg::default_area_result<Geometry>::type area = bg::area(geometry);
 
 #ifdef GEOMETRY_TEST_DEBUG
     std::ostringstream out;
     out << typeid(typename bg::coordinate_type<Geometry>::type).name()
         << " "
- << typeid(typename bg::area_result<Geometry>::type).name()
+ << typeid(typename bg::default_area_result<Geometry>::type).name()
         << " "
         << "area : " << bg::area(geometry)
         << std::endl;
@@ -56,7 +56,7 @@
 
 template <typename Geometry>
 void test_geometry(std::string const& wkt,
- typename bg::area_result<Geometry>::type expected_area)
+ typename bg::default_area_result<Geometry>::type expected_area)
 {
     Geometry geometry;
     bg::read_wkt(wkt, geometry);

Modified: trunk/libs/geometry/test/algorithms/test_convex_hull.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_convex_hull.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_convex_hull.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -41,7 +41,7 @@
 
     BOOST_CHECK(bg::num_points(geometry) == size_original);
 
- typename bg::area_result<Geometry>::type ah = bg::area(hull);
+ typename bg::default_area_result<Geometry>::type ah = bg::area(hull);
     if (reverse)
     {
         ah = -ah;

Modified: trunk/libs/geometry/test/algorithms/test_difference.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_difference.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_difference.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -64,7 +64,7 @@
         bg::difference(g1, g2, clip);
     }
 
- typename bg::area_result<G1>::type area = 0;
+ typename bg::default_area_result<G1>::type area = 0;
     std::size_t n = 0;
     for (typename std::vector<OutputType>::iterator it = clip.begin();
             it != clip.end();

Modified: trunk/libs/geometry/test/algorithms/test_distance.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_distance.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_distance.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -111,13 +111,13 @@
             Geometry2 const& geometry2,
             long double expected_distance)
 {
- typename bg::distance_result<Geometry1>::type distance = bg::distance(geometry1, geometry2);
+ typename bg::default_distance_result<Geometry1>::type distance = bg::distance(geometry1, geometry2);
 
 #ifdef GEOMETRY_TEST_DEBUG
     std::ostringstream out;
     out << typeid(typename bg::coordinate_type<Geometry1>::type).name()
         << std::endl
- << typeid(typename bg::distance_result<Geometry1>::type).name()
+ << typeid(typename bg::default_distance_result<Geometry1>::type).name()
         << std::endl
         << "distance : " << bg::distance(geometry1, geometry2)
         << std::endl;

Modified: trunk/libs/geometry/test/algorithms/test_intersection.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_intersection.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_intersection.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -36,7 +36,7 @@
 
 
 template <typename OutputType, typename CalculationType, typename G1, typename G2>
-typename bg::area_result<G1>::type test_intersection(std::string const& caseid,
+typename bg::default_area_result<G1>::type test_intersection(std::string const& caseid,
         G1 const& g1, G2 const& g2,
         std::size_t expected_count = 0, std::size_t expected_point_count = 0,
         double expected_length_or_area = 0,
@@ -69,7 +69,7 @@
     bg::detail::intersection::intersection_insert<OutputType>(g1, g2, std::back_inserter(clip), strategy());
 
 
- typename bg::area_result<G1>::type length_or_area = 0;
+ typename bg::default_area_result<G1>::type length_or_area = 0;
     std::size_t n = 0;
     for (typename std::vector<OutputType>::iterator it = clip.begin();
             it != clip.end();
@@ -174,7 +174,7 @@
 }
 
 template <typename OutputType, typename G1, typename G2>
-typename bg::area_result<G1>::type test_one(std::string const& caseid,
+typename bg::default_area_result<G1>::type test_one(std::string const& caseid,
         std::string const& wkt1, std::string const& wkt2,
         std::size_t expected_count = 0, std::size_t expected_point_count = 0,
         double expected_length_or_area = 0,

Modified: trunk/libs/geometry/test/algorithms/test_length.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_length.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_length.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -18,13 +18,13 @@
 template <typename Geometry>
 void test_length(Geometry const& geometry, long double expected_length)
 {
- typename bg::length_result<Geometry>::type length = bg::length(geometry);
+ typename bg::default_length_result<Geometry>::type length = bg::length(geometry);
 
 #ifdef GEOMETRY_TEST_DEBUG
     std::ostringstream out;
     out << typeid(typename bg::coordinate_type<Geometry>::type).name()
         << std::endl
- << typeid(typename bg::length_result<Geometry>::type).name()
+ << typeid(typename bg::default_length_result<Geometry>::type).name()
         << std::endl
         << "length : " << bg::length(geometry)
         << std::endl;

Modified: trunk/libs/geometry/test/algorithms/test_perimeter.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_perimeter.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_perimeter.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -21,7 +21,7 @@
 template <typename Geometry>
 void test_perimeter(Geometry const& geometry, long double expected_perimeter)
 {
- typename bg::distance_result<Geometry>::type perimeter = bg::perimeter(geometry);
+ typename bg::default_distance_result<Geometry>::type perimeter = bg::perimeter(geometry);
 
 #ifdef GEOMETRY_TEST_DEBUG
     std::ostringstream out;

Modified: trunk/libs/geometry/test/algorithms/test_union.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/test_union.hpp (original)
+++ trunk/libs/geometry/test/algorithms/test_union.hpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -45,7 +45,7 @@
     std::vector<OutputType> clip;
     bg::union_(g1, g2, clip);
 
- typename bg::area_result<G1>::type area = 0;
+ typename bg::default_area_result<G1>::type area = 0;
     std::size_t n = 0;
     std::size_t holes = 0;
     for (typename std::vector<OutputType>::iterator it = clip.begin();
@@ -68,7 +68,7 @@
         array_with_one_empty_geometry.push_back(OutputType());
         boost::copy(array_with_one_empty_geometry, bg::detail::union_::union_insert<OutputType>(g1, g2, std::back_inserter(inserted)));
 
- typename bg::area_result<G1>::type area_inserted = 0;
+ typename bg::default_area_result<G1>::type area_inserted = 0;
         for (typename std::vector<OutputType>::iterator it = inserted.begin();
                 it != inserted.end(); ++it)
         {

Modified: trunk/libs/geometry/test/extensions/algorithms/connect.cpp
==============================================================================
--- trunk/libs/geometry/test/extensions/algorithms/connect.cpp (original)
+++ trunk/libs/geometry/test/extensions/algorithms/connect.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -51,7 +51,7 @@
         bg::connect(geometry, connected_vector);
     }
 
- typename bg::length_result<Geometry>::type length = 0;
+ typename bg::default_length_result<Geometry>::type length = 0;
     std::size_t count = boost::size(connected_vector);
     std::size_t point_count = 0;
 

Modified: trunk/libs/geometry/test/extensions/algorithms/dissolve.cpp
==============================================================================
--- trunk/libs/geometry/test/extensions/algorithms/dissolve.cpp (original)
+++ trunk/libs/geometry/test/extensions/algorithms/dissolve.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -83,7 +83,7 @@
     std::vector<GeometryOut> dissolved_vector;
     bg::dissolve_inserter<GeometryOut>(geometry, std::back_inserter(dissolved_vector));
 
- typename bg::area_result<Geometry>::type length_or_area = 0;
+ typename bg::default_area_result<Geometry>::type length_or_area = 0;
     //std::size_t holes = 0;
     std::size_t count = 0;
 

Modified: trunk/libs/geometry/test/extensions/algorithms/offset.cpp
==============================================================================
--- trunk/libs/geometry/test/extensions/algorithms/offset.cpp (original)
+++ trunk/libs/geometry/test/extensions/algorithms/offset.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -47,7 +47,7 @@
     GeometryOut moved_by_offset;
     bg::offset(geometry, moved_by_offset, join_strategy(2), distance);
 
- typename bg::length_result<Geometry>::type length
+ typename bg::default_length_result<Geometry>::type length
                     = bg::length(moved_by_offset);
 
     /*

Modified: trunk/libs/geometry/test/multi/algorithms/multi_distance.cpp
==============================================================================
--- trunk/libs/geometry/test/multi/algorithms/multi_distance.cpp (original)
+++ trunk/libs/geometry/test/multi/algorithms/multi_distance.cpp 2011-04-02 09:31:05 EDT (Sat, 02 Apr 2011)
@@ -35,7 +35,7 @@
     Geometry2 g2;
     bg::read_wkt(wkt1, g1);
     bg::read_wkt(wkt2, g2);
- typename bg::distance_result<Geometry1, Geometry2>::type d = bg::distance(g1, g2);
+ typename bg::default_distance_result<Geometry1, Geometry2>::type d = bg::distance(g1, g2);
 
     BOOST_CHECK_CLOSE(d, expected, 0.0001);
 }
@@ -48,7 +48,7 @@
     Geometry2 g2;
     bg::read_wkt(wkt1, g1);
     bg::read_wkt(wkt2, g2);
- typename bg::distance_result<Geometry1, Geometry2>::type d = bg::distance(g1, g2, strategy);
+ typename bg::default_distance_result<Geometry1, Geometry2>::type d = bg::distance(g1, g2, strategy);
 
     BOOST_CHECK_CLOSE(d, expected, 0.0001);
 }


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