|
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 <boost/polygon/polygon.hpp><br>
#include <cassert><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 <typename Point><br>void test_point() {<br>
//constructing a gtl point<br>
int x = 10;<br>
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 <cassert><br>
#include <list><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 <typename Polygon><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 <deque><br>
#include <iostream><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 <typename PolygonSet><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 <boost/polygon/polygon.hpp><br>
#include <cassert><br>
namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
int main() {<br>
//constructing a gtl point<br>
typedef gtl::point_data<int> 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 <boost/polygon/polygon.hpp><br>
#include <cassert><br>
namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
int main() {<br>
//lets declare ourselves a polygon set<br>
using namespace gtl; //because of operators<br>
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 <boost/polygon/polygon.hpp><br>
#include <cassert><br>
namespace gtl = boost::polygon;<br>
-<br>
+using namespace boost::polygon::operators;<br><br>
int main() {<br>
//lets construct a 10x10 rectangle shaped polygon<br>
typedef gtl::polygon_data<int> 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 <boost/polygon/polygon.hpp><br>
#include <cassert><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 <typename T><br>
struct lookup_polygon_set_type { typedef gtl::polygon_set_data<int> type; };<br>
template <typename T, typename T2><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">
-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"> </span>
- using namespace boost::polygon; </span></nobr></div>
+ <span style="mso-spacerun:yes"> </span> 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"> </span>
- 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