Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83350 - trunk/libs/polygon/doc
From: sydorchuk.andriy_at_[hidden]
Date: 2013-03-07 17:11:42


Author: asydorchuk
Date: 2013-03-07 17:11:40 EST (Thu, 07 Mar 2013)
New Revision: 83350
URL: http://svn.boost.org/trac/boost/changeset/83350

Log:
Polygon: fixing ticket #8026 (Documentation for point concept is missing a typedef).
Text files modified:
   trunk/libs/polygon/doc/gtl_custom_point.htm | 26 +++++++++++++-------------
   trunk/libs/polygon/doc/gtl_interval_concept.htm | 11 +++++++----
   trunk/libs/polygon/doc/gtl_point_concept.htm | 12 +++++++++---
   trunk/libs/polygon/doc/gtl_segment_concept.htm | 14 +++++++++-----
   4 files changed, 38 insertions(+), 25 deletions(-)

Modified: trunk/libs/polygon/doc/gtl_custom_point.htm
==============================================================================
--- trunk/libs/polygon/doc/gtl_custom_point.htm (original)
+++ trunk/libs/polygon/doc/gtl_custom_point.htm 2013-03-07 17:11:40 EST (Thu, 07 Mar 2013)
@@ -1,11 +1,8 @@
-<html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head>
 
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
-<title>Custom Point</title>
-</head>
 
-<body>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Custom Point</title></head><body>
 
 <p><font face="Courier New">/*<br>
 Copyright 2008 Intel Corporation<br>
@@ -95,7 +92,11 @@
 };<br>&nbsp; &nbsp;
 <br>&nbsp; &nbsp;
 template &lt;&gt;<br>&nbsp; &nbsp;
-struct point_mutable_traits&lt;CPoint&gt; {<br>&nbsp; &nbsp;
+struct point_mutable_traits&lt;CPoint&gt; {<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef int coordinate_type;<br>
+<br>
+</font></p>
+<p><font face="Courier New">&nbsp; &nbsp;
 &nbsp; &nbsp;
 static inline void set(CPoint&amp; point, orientation_2d orient, int value) {<br>&nbsp; &nbsp;
 &nbsp; &nbsp;
@@ -137,11 +138,12 @@
 &nbsp;</font></p>
 
 
-<table class="docinfo" rules="none" frame="void" id="table1">
+
+<table class="docinfo" id="table1" frame="void" rules="none">
         <colgroup>
                 <col class="docinfo-name"><col class="docinfo-content">
         </colgroup>
- <tbody vAlign="top">
+ <tbody valign="top">
                 <tr>
                         <th class="docinfo-name">Copyright:</th>
                         <td>Copyright © Intel Corporation 2008-2010.</td>
@@ -154,8 +156,6 @@
                         <a class="reference" target="_top" href="http://www.boost.org/LICENSE_1_0.txt">
                         http://www.boost.org/LICENSE_1_0.txt>)</td>
                 </tr>
-</table>
-
-</body>
+</tbody></table>
 
-</html>
+</body></html>
\ No newline at end of file

Modified: trunk/libs/polygon/doc/gtl_interval_concept.htm
==============================================================================
--- trunk/libs/polygon/doc/gtl_interval_concept.htm (original)
+++ trunk/libs/polygon/doc/gtl_interval_concept.htm 2013-03-07 17:11:40 EST (Thu, 07 Mar 2013)
@@ -1,6 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head>
-<!--
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head><!--
     Copyright 2009-2010 Intel Corporation
     license banner
 --><title>Boost Polygon Library: Interval Concept</title>
@@ -9,6 +8,8 @@
 
 
 
+
+
     <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" /><!-- <link type="text/css" rel="stylesheet" href="adobe_source.css"> --></head><body><table style="margin: 0pt; padding: 0pt; width: 100%;" border="0" cellpadding="0" cellspacing="0"><tbody><tr>
 <td style="background-color: rgb(238, 238, 238);" nowrap="1" valign="top">
     <div style="padding: 5px;" align="center">
@@ -113,6 +114,8 @@
 <br />
 template &lt;typename T&gt;<br />
 struct interval_mutable_traits {<br />
+&nbsp; </font><font face="Courier New">typedef typename T::coordinate_type coordinate_type;</font><br />
+ <font face="Courier New"><br />
 &nbsp; static inline void set(T&amp; interval, direction_1d dir, </font>
 <br />
 <font face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -471,8 +474,8 @@
                 <td>Assign from an object that is a model of interval.</td>
         </tr>
         <tr>
- <td width="586"><font face="Courier New"><b />bool<b>
- operator==</b>(const </font><font face="Courier New">interval_data</font><font face="Courier New">&amp; that) const</font></td>
+ <td width="586"><font face="Courier New"><b>bool<b>
+ operator==</b>(const </b></font><b><font face="Courier New">interval_data</font><font face="Courier New">&amp; that) const</font></b></td>
                 <td>Equality operator overload.</td>
         </tr>
         <tr>

Modified: trunk/libs/polygon/doc/gtl_point_concept.htm
==============================================================================
--- trunk/libs/polygon/doc/gtl_point_concept.htm (original)
+++ trunk/libs/polygon/doc/gtl_point_concept.htm 2013-03-07 17:11:40 EST (Thu, 07 Mar 2013)
@@ -1,5 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head><!--
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head>
+<!--
     Copyright 2009-2010 Intel Corporation
     license banner
 --><title>Boost Polygon Library: Point Concept</title>
@@ -103,7 +104,7 @@
 Below is shown the default point traits.&nbsp;
 Specialization of these traits is required for types that don't conform to the
 default behavior.</p>
- <p>
+ <p style="font-family: Courier New,Courier,monospace;">
 template &lt;typename T&gt;<br />
 struct point_traits {<br />
 &nbsp;&nbsp;&nbsp;&nbsp; typedef typename T::coordinate_type coordinate_type;<br />
@@ -117,13 +118,18 @@
 <br />
 template &lt;typename T&gt;<br />
 struct point_mutable_traits {<br />
+
+&nbsp;&nbsp;&nbsp;&nbsp; typedef typename T::coordinate_type coordinate_type;<br />
+<br />
 &nbsp;&nbsp;&nbsp;&nbsp; static void set(T&amp; point, orientation_2d orient,
 typename point_traits&lt;T&gt;::coordinate_type value) {<br />
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; point.set(orient, value);
 <br />
 &nbsp;&nbsp;&nbsp;&nbsp; }<br />
 &nbsp;&nbsp;&nbsp;&nbsp; static T construct(typename point_traits&lt;T&gt;::coordinate_type
-x_value, typename point_traits&lt;T&gt;::coordinate_type y_value) {<br />
+x_value,<br />
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+typename point_traits&lt;T&gt;::coordinate_type y_value) {<br />
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return T(x_value, y_value);
 <br />
 &nbsp;&nbsp;&nbsp;&nbsp; }<br />

Modified: trunk/libs/polygon/doc/gtl_segment_concept.htm
==============================================================================
--- trunk/libs/polygon/doc/gtl_segment_concept.htm (original)
+++ trunk/libs/polygon/doc/gtl_segment_concept.htm 2013-03-07 17:11:40 EST (Thu, 07 Mar 2013)
@@ -1,5 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head><!--
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:(null)1="http://www.w3.org/TR/REC-html40" lang="en"><head>
+<!--
     Copyright 2009-2010 Intel Corporation
     license banner
 --><title>Boost Polygon Library: Segment Concept</title>
@@ -102,9 +103,10 @@
 concept, specialize the geometry concept meta-function for that
 type.&nbsp; In the example below CSegment is registered as a model of
 the segment concept.</p>
- <p> <font face="Courier New">template &lt;&gt;<br />
-struct geometry_concept&lt;</font>CSegment<font face="Courier New">&gt;
-{ typedef segment_concept type; };</font></p>
+ <p style="font-family: Courier New,Courier,monospace;"> template &lt;&gt;<br />
+
+struct geometry_concept&lt;CSegment&gt;
+{ typedef segment_concept type; };</p>
       <p> The semantic of a segment is
 that it has a low and high point.&nbsp; A
 std::pair&lt;Point, Point&gt;,
@@ -131,6 +133,8 @@
       <span style="font-family: Courier New,Courier,monospace;">};</span><br />
       <br /><span style="font-family: Courier New,Courier,monospace;">template &lt;typename Segment&gt;<br />
 struct segment_mutable_traits {<br />
+&nbsp; </span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">typedef typename segment_traits&lt;Segment&gt;::coordinate_type </span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">coordinate_type;</span></span><br />
+ <span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">
 &nbsp; typedef typename segment_traits&lt;Segment&gt;::point_type point_type;<br />
 <br />
 &nbsp; static inline void set(Segment&amp; segment, direction_1d dir, const point_type&amp; point) {<br />
@@ -570,4 +574,4 @@
 </table>
 
 
-</body></html>
+</body></html>
\ No newline at end of file


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