Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77492 - in sandbox/gtl: boost/polygon doc
From: sydorchuk.andriy_at_[hidden]
Date: 2012-03-22 19:31:09


Author: asydorchuk
Date: 2012-03-22 19:31:08 EDT (Thu, 22 Mar 2012)
New Revision: 77492
URL: http://svn.boost.org/trac/boost/changeset/77492

Log:
Updating voronoi data access methods and corresponding documentations.

Text files modified:
   sandbox/gtl/boost/polygon/voronoi_diagram.hpp | 9 +++------
   sandbox/gtl/doc/voronoi_diagram.htm | 29 ++++++++---------------------
   2 files changed, 11 insertions(+), 27 deletions(-)

Modified: sandbox/gtl/boost/polygon/voronoi_diagram.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/voronoi_diagram.hpp (original)
+++ sandbox/gtl/boost/polygon/voronoi_diagram.hpp 2012-03-22 19:31:08 EDT (Thu, 22 Mar 2012)
@@ -69,8 +69,7 @@
   const voronoi_edge_type *incident_edge() const { return incident_edge_; }
   void incident_edge(voronoi_edge_type *e) { incident_edge_ = e; }
 
- void *data() { return data_; }
- const void *data() const { return data_; }
+ void *data() const { return data_; }
   void data(void *d) const { data_ = d; }
 
 private:
@@ -104,8 +103,7 @@
   const voronoi_edge_type *incident_edge() const { return incident_edge_; }
   void incident_edge(voronoi_edge_type *e) { incident_edge_ = e; }
 
- void *data() { return data_; }
- const void *data() const { return data_; }
+ void *data() const { return data_; }
   void data(void *d) const { data_ = d; }
 
 private:
@@ -162,8 +160,7 @@
   const voronoi_edge_type *prev() const { return prev_; }
   void prev(voronoi_edge_type *e) { prev_ = e; }
 
- void *data() { return data_; }
- const void *data() const { return data_; }
+ void *data() const { return data_; }
   void data(void *d) const { data_ = d; }
 
   // Return a pointer to the rotation next edge

Modified: sandbox/gtl/doc/voronoi_diagram.htm
==============================================================================
--- sandbox/gtl/doc/voronoi_diagram.htm (original)
+++ sandbox/gtl/doc/voronoi_diagram.htm 2012-03-22 19:31:08 EDT (Thu, 22 Mar 2012)
@@ -18,6 +18,7 @@
 
 
 
+
 <meta http-equiv="Content-Language" content="en-us">
 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Contents</title><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>
 
@@ -309,19 +310,14 @@
             <td style="vertical-align: top;">Sets CCW prev edge pointer of the edge.<br>
             </td>
           </tr>
+
           <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data()<br>
+ <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data() const<br>
             </td>
             <td style="vertical-align: top;">Returns pointer to the data associated with the edge.<br>
             </td>
           </tr>
           <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">const void *data() const<br>
- </td>
- <td style="vertical-align: top;">Returns const pointer to the data associated with the edge.<br>
- </td>
- </tr>
- <tr>
             <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void data(void *d) const<br>
             </td>
             <td style="vertical-align: top;">Sets data pointer of the edge.<br>
@@ -444,16 +440,11 @@
             <td style="vertical-align: top;">Sets incident boundary edge pointer of the cell.<br>
             </td>
           </tr>
+
           <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data()<br>
- </td>
- <td style="vertical-align: top;">Returns pointer to the data associated with the cell.<br>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">const void *data() const<br>
+ <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data() const<br>
             </td>
- <td style="vertical-align: top;">Returns const pointer to the data associated with the cell.</td>
+ <td style="vertical-align: top;">Returns pointer to the data associated with the cell.</td>
           </tr>
           <tr>
             <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void data(void *d) const<br>
@@ -524,15 +515,11 @@
             </td>
           </tr>
           <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data()<br>
+ <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void *data() const<br>
             </td>
             <td style="vertical-align: top;">Returns pointer to the data associated with the vertex.</td>
           </tr>
- <tr>
- <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">const void *data() const<br>
- </td>
- <td style="vertical-align: top;">Returns const pointer to the data associated with the vertex.</td>
- </tr>
+
           <tr>
             <td style="vertical-align: top; font-family: Courier New,Courier,monospace;">void data(void *d) const<br>
             </td>


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