Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55446 - in sandbox/gtl: boost/polygon boost/polygon/detail doc
From: lucanus.j.simonson_at_[hidden]
Date: 2009-08-07 12:12:42


Author: ljsimons
Date: 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
New Revision: 55446
URL: http://svn.boost.org/trac/boost/changeset/55446

Log:
added operators namespace
Text files modified:
   sandbox/gtl/boost/polygon/detail/polygon_45_set_view.hpp | 2 ++
   sandbox/gtl/boost/polygon/detail/polygon_90_set_view.hpp | 2 ++
   sandbox/gtl/boost/polygon/gtl_boost_unit_test.cpp | 4 ++--
   sandbox/gtl/boost/polygon/polygon_set_concept.hpp | 6 ++++--
   sandbox/gtl/doc/gtl_custom_point.htm | 2 +-
   sandbox/gtl/doc/gtl_custom_polygon.htm | 2 +-
   sandbox/gtl/doc/gtl_custom_polygon_set.htm | 2 +-
   sandbox/gtl/doc/gtl_point_usage.htm | 2 +-
   sandbox/gtl/doc/gtl_polygon_set_usage.htm | 2 +-
   sandbox/gtl/doc/gtl_polygon_usage.htm | 2 +-
   sandbox/gtl/doc/gtl_property_merge_usage.htm | 4 ++--
   sandbox/gtl/doc/index.htm | 7 +++----
   12 files changed, 21 insertions(+), 16 deletions(-)

Modified: sandbox/gtl/boost/polygon/detail/polygon_45_set_view.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/detail/polygon_45_set_view.hpp (original)
+++ sandbox/gtl/boost/polygon/detail/polygon_45_set_view.hpp 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -166,6 +166,7 @@
   template <typename ltype, typename rtype, int op_type>
   struct geometry_concept<polygon_45_set_view<ltype, rtype, op_type> > { typedef polygon_45_set_concept type; };
 
+ namespace operators {
   struct y_ps45_b : gtl_yes {};
 
   template <typename geometry_type_1, typename geometry_type_2>
@@ -350,6 +351,7 @@
     retval -= rvalue;
     return retval;
   }
+ }
 }
 }
 #endif

Modified: sandbox/gtl/boost/polygon/detail/polygon_90_set_view.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/detail/polygon_90_set_view.hpp (original)
+++ sandbox/gtl/boost/polygon/detail/polygon_90_set_view.hpp 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -223,6 +223,7 @@
     return lvalue_;
   }
   
+ namespace operators {
   struct y_ps90_b : gtl_yes {};
 
   template <typename geometry_type_1, typename geometry_type_2>
@@ -436,6 +437,7 @@
     retval -= rvalue;
     return retval;
   }
+ }
 }
 }
 #endif

Modified: sandbox/gtl/boost/polygon/gtl_boost_unit_test.cpp
==============================================================================
--- sandbox/gtl/boost/polygon/gtl_boost_unit_test.cpp (original)
+++ sandbox/gtl/boost/polygon/gtl_boost_unit_test.cpp 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -9,7 +9,7 @@
 #include <iostream>
 #include "polygon.hpp"
 namespace gtl = boost::polygon;
-
+using namespace boost::polygon::operators;
 #include <time.h>
 #include <stdlib.h>
 
@@ -3312,7 +3312,7 @@
     std::cout << "test_aa_touch_ur failed\n";
     return 1;
   }
- if(!test_aa_touch_ur2()) {
+ if(!test_aa_touch_ur()) {
     std::cout << "test_aa_touch_ur failed\n";
     return 1;
   }

Modified: sandbox/gtl/boost/polygon/polygon_set_concept.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/polygon_set_concept.hpp (original)
+++ sandbox/gtl/boost/polygon/polygon_set_concept.hpp 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -61,7 +61,6 @@
 
   //get trapezoids
   template <typename output_container_type, typename polygon_set_type>
- template <typename polygon_set_type>
   typename enable_if< typename is_mutable_polygon_set_type<polygon_set_type>::type,
                       void>::type
   get_trapezoids(output_container_type& output, const polygon_set_type& polygon_set) {
@@ -72,7 +71,6 @@
 
   //get trapezoids
   template <typename output_container_type, typename polygon_set_type>
- template <typename polygon_set_type>
   typename enable_if< typename is_mutable_polygon_set_type<polygon_set_type>::type,
                       void>::type
   get_trapezoids(output_container_type& output, const polygon_set_type& polygon_set,
@@ -247,6 +245,8 @@
     return polygon_set;
   }
 
+ namespace operators {
+
   struct yes_ps_ob : gtl_yes {};
 
   template <typename geometry_type_1, typename geometry_type_2>
@@ -386,6 +386,8 @@
     return self_assignment_boolean_op<geometry_type_1, geometry_type_2, 3>(lvalue, rvalue);
   }
 
+ } //end operators namespace
+
   template <typename T>
   struct view_of<polygon_45_set_concept, T> {
     typedef typename get_coordinate_type<T, typename geometry_concept<T>::type >::type coordinate_type;

Modified: sandbox/gtl/doc/gtl_custom_point.htm
==============================================================================
--- sandbox/gtl/doc/gtl_custom_point.htm (original)
+++ sandbox/gtl/doc/gtl_custom_point.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -10,7 +10,7 @@
 <p><font face="Courier New">#include &lt;boost/polygon/polygon.hpp&gt;<br>
 #include &lt;cassert&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 //lets make the body of main from point_usage.cpp<br>//a generic function parameterized by point type<br>template &lt;typename Point&gt;<br>void test_point() {<br>&nbsp;
 &nbsp; //constructing a gtl point<br>&nbsp; &nbsp;
 int x = 10;<br>&nbsp; &nbsp;

Modified: sandbox/gtl/doc/gtl_custom_polygon.htm
==============================================================================
--- sandbox/gtl/doc/gtl_custom_polygon.htm (original)
+++ sandbox/gtl/doc/gtl_custom_polygon.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -11,7 +11,7 @@
 #include &lt;cassert&gt;<br>
 #include &lt;list&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 //first lets turn our polygon usage code into a generic<br>
 //function parameterized by polygon type<br>
 template &lt;typename Polygon&gt;<br>

Modified: sandbox/gtl/doc/gtl_custom_polygon_set.htm
==============================================================================
--- sandbox/gtl/doc/gtl_custom_polygon_set.htm (original)
+++ sandbox/gtl/doc/gtl_custom_polygon_set.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -14,7 +14,7 @@
 #include &lt;deque&gt;<br>
 #include &lt;iostream&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 //once again we make our usage of the library generic<br>
 //and parameterize it on the polygon set type<br>
 template &lt;typename PolygonSet&gt;<br>

Modified: sandbox/gtl/doc/gtl_point_usage.htm
==============================================================================
--- sandbox/gtl/doc/gtl_point_usage.htm (original)
+++ sandbox/gtl/doc/gtl_point_usage.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -10,7 +10,7 @@
 <p><font face="Courier New">#include &lt;boost/polygon/polygon.hpp&gt;<br>
 #include &lt;cassert&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 int main() {<br>
 &nbsp; //constructing a gtl point<br>
 &nbsp; typedef gtl::point_data&lt;int&gt; Point;<br>

Modified: sandbox/gtl/doc/gtl_polygon_set_usage.htm
==============================================================================
--- sandbox/gtl/doc/gtl_polygon_set_usage.htm (original)
+++ sandbox/gtl/doc/gtl_polygon_set_usage.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -10,7 +10,7 @@
 <p><font face="Courier New">#include &lt;boost/polygon/polygon.hpp&gt;<br>
 #include &lt;cassert&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 int main() {<br>&nbsp; &nbsp;
 //lets declare ourselves a polygon set<br>&nbsp; &nbsp;
 using namespace gtl; //because of operators<br>&nbsp; &nbsp;

Modified: sandbox/gtl/doc/gtl_polygon_usage.htm
==============================================================================
--- sandbox/gtl/doc/gtl_polygon_usage.htm (original)
+++ sandbox/gtl/doc/gtl_polygon_usage.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -10,7 +10,7 @@
 <p><font face="Courier New">#include &lt;boost/polygon/polygon.hpp&gt;<br>
 #include &lt;cassert&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
 int main() {<br>
 &nbsp;&nbsp;&nbsp; //lets construct a 10x10 rectangle shaped polygon<br>
 &nbsp;&nbsp;&nbsp; typedef gtl::polygon_data&lt;int&gt; Polygon;<br>

Modified: sandbox/gtl/doc/gtl_property_merge_usage.htm
==============================================================================
--- sandbox/gtl/doc/gtl_property_merge_usage.htm (original)
+++ sandbox/gtl/doc/gtl_property_merge_usage.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -10,8 +10,8 @@
 <p><font face="Courier New">#include &lt;boost/polygon/polygon.hpp&gt;<br>
 #include &lt;cassert&gt;<br>
 namespace gtl = boost::polygon;<br>
-<br>
-//just a little meta-programming to get things off on the right foot<br>
+using namespace boost::polygon::operators;<br>
+<br>//just a little meta-programming to get things off on the right foot<br>
 template &lt;typename T&gt;<br>
 struct lookup_polygon_set_type { typedef gtl::polygon_set_data&lt;int&gt; type; };<br>
 template &lt;typename T, typename T2&gt;<br>

Modified: sandbox/gtl/doc/index.htm
==============================================================================
--- sandbox/gtl/doc/index.htm (original)
+++ sandbox/gtl/doc/index.htm 2009-08-07 12:12:40 EDT (Fri, 07 Aug 2009)
@@ -103,17 +103,16 @@
         <div style="text-align:justify;mso-char-wrap:1;mso-kinsoku-overflow:1">
                 <nobr>
 <span style="font-family: Courier New; mso-ascii-font-family: Courier New; mso-bidi-font-family: Arial; mso-hansi-font-family: Courier New">&nbsp;&nbsp;&nbsp;&nbsp;
-CBoundingBox domainExtent; </span></nobr></div>
+ CBoundingBox domainExtent; </span></nobr></div>
         <div style="text-align:justify;mso-char-wrap:1;mso-kinsoku-overflow:1">
                 <nobr>
                 <span style="font-family: Courier New; mso-ascii-font-family: Courier New; mso-bidi-font-family: Arial; mso-hansi-font-family: Courier New">
- <span style="mso-spacerun:yes">&nbsp; </span>&nbsp;&nbsp;
- using namespace boost::polygon; </span></nobr></div>
+ <span style="mso-spacerun:yes">&nbsp; </span>&nbsp;&nbsp; using namespace boost::polygon::operators; </span></nobr></div>
         <div style="text-align:justify;mso-char-wrap:1;mso-kinsoku-overflow:1">
                 <nobr>
                 <span style="font-family: Courier New; mso-ascii-font-family: Courier New; mso-bidi-font-family: Arial; mso-hansi-font-family: Courier New">
                 <span style="mso-spacerun:yes">&nbsp; </span>&nbsp;&nbsp;
- extents(domainExtent, a); </span></nobr></div>
+ boost::polygon::extents(domainExtent, a); </span></nobr></div>
         <div style="text-align:justify;mso-char-wrap:1;mso-kinsoku-overflow:1">
                 <nobr>
                 <span style="font-family: Courier New; mso-ascii-font-family: Courier New; mso-bidi-font-family: Arial; mso-hansi-font-family: Courier New">


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