|
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>
<br>
template <><br>
-struct point_mutable_traits<CPoint> {<br>
+struct point_mutable_traits<CPoint> {<br>
+ typedef int coordinate_type;<br>
+<br>
+</font></p>
+<p><font face="Courier New">
static inline void set(CPoint& point, orientation_2d orient, int value) {<br>
@@ -137,11 +138,12 @@
</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 <typename T><br />
struct interval_mutable_traits {<br />
+ </font><font face="Courier New">typedef typename T::coordinate_type coordinate_type;</font><br />
+ <font face="Courier New"><br />
static inline void set(T& interval, direction_1d dir, </font>
<br />
<font face="Courier New">
@@ -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">& 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">& 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.
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 <typename T><br />
struct point_traits {<br />
typedef typename T::coordinate_type coordinate_type;<br />
@@ -117,13 +118,18 @@
<br />
template <typename T><br />
struct point_mutable_traits {<br />
+
+ typedef typename T::coordinate_type coordinate_type;<br />
+<br />
static void set(T& point, orientation_2d orient,
typename point_traits<T>::coordinate_type value) {<br />
point.set(orient, value);
<br />
}<br />
static T construct(typename point_traits<T>::coordinate_type
-x_value, typename point_traits<T>::coordinate_type y_value) {<br />
+x_value,<br />
+
+typename point_traits<T>::coordinate_type y_value) {<br />
return T(x_value, y_value);
<br />
}<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. In the example below CSegment is registered as a model of
the segment concept.</p>
- <p> <font face="Courier New">template <><br />
-struct geometry_concept<</font>CSegment<font face="Courier New">>
-{ typedef segment_concept type; };</font></p>
+ <p style="font-family: Courier New,Courier,monospace;"> template <><br />
+
+struct geometry_concept<CSegment>
+{ typedef segment_concept type; };</p>
<p> The semantic of a segment is
that it has a low and high point. A
std::pair<Point, Point>,
@@ -131,6 +133,8 @@
<span style="font-family: Courier New,Courier,monospace;">};</span><br />
<br /><span style="font-family: Courier New,Courier,monospace;">template <typename Segment><br />
struct segment_mutable_traits {<br />
+ </span></span><span style="font-family: Courier New,Courier,monospace;"><span style="font-family: Courier New,Courier,monospace;">typedef typename segment_traits<Segment>::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;">
typedef typename segment_traits<Segment>::point_type point_type;<br />
<br />
static inline void set(Segment& segment, direction_1d dir, const point_type& 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