Boost logo

Boost-Commit :

From: mariano.consoni_at_[hidden]
Date: 2008-07-28 14:53:37


Author: mconsoni
Date: 2008-07-28 14:53:37 EDT (Mon, 28 Jul 2008)
New Revision: 47856
URL: http://svn.boost.org/trac/boost/changeset/47856

Log:
- More comments in the tests.

Text files modified:
   sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/custom_point_test.cpp | 7 ++++++-
   sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test.cpp | 2 ++
   2 files changed, 8 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/custom_point_test.cpp
==============================================================================
--- sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/custom_point_test.cpp (original)
+++ sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/custom_point_test.cpp 2008-07-28 14:53:37 EDT (Mon, 28 Jul 2008)
@@ -54,6 +54,7 @@
 };
 
 
+// point traits as in the geometry library proposal
 namespace geometry
 {
   template <>
@@ -74,7 +75,7 @@
   };
 } // namespace geometry
 
-
+// point operator<<
 template < typename CH, typename TR >
 inline std::basic_ostream < CH,TR > &
 operator<<(std::basic_ostream < CH, TR > &os, const my_2d_point & p)
@@ -90,6 +91,7 @@
   std::vector < std::string > data;
   std::vector < my_2d_point > points;
 
+ // insert data
   data.push_back("test0");
   data.push_back("test1");
   data.push_back("test2");
@@ -109,6 +111,7 @@
 
   typedef std::vector < std::string >::iterator value_type;
 
+ // create index
   boost::spatial_index::spatial_index < my_2d_point, value_type,
     boost::spatial_index::quadtree < my_2d_point, value_type > >q(b, 1);
 
@@ -120,6 +123,7 @@
 
   std::vector < std::string >::iterator it = data.begin();
 
+ // insert data
   std::cerr << " --> insert" << std::endl;
   q.insert(my_2d_point(1.0, 1.0), it++);
   std::cerr << " --> insert" << std::endl;
@@ -136,6 +140,7 @@
 
   std::vector < std::string >::iterator it1;
 
+ // find data
   std::cerr << " --> find" << std::endl;
   it1 = q.find(my_2d_point(9.0, 9.0));
   BOOST_CHECK_EQUAL(*it1, "test4");

Modified: sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test.cpp
==============================================================================
--- sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test.cpp (original)
+++ sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test.cpp 2008-07-28 14:53:37 EDT (Mon, 28 Jul 2008)
@@ -24,6 +24,7 @@
   std::vector<std::string> data;
   std::vector< geometry::point_xy<double> > points;
 
+ // insert data
   data.push_back("test0");
   data.push_back("test1");
   data.push_back("test2");
@@ -70,6 +71,7 @@
   q.insert(geometry::point_xy<double>(9.0,8.0), it++);
 
 
+ // search data
   std::vector<std::string>::iterator it1;
 
   std::cerr << " --> find" << std::endl;


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