|
Boost-Commit : |
From: mariano.consoni_at_[hidden]
Date: 2008-07-24 11:28:40
Author: mconsoni
Date: 2008-07-24 11:28:40 EDT (Thu, 24 Jul 2008)
New Revision: 47762
URL: http://svn.boost.org/trac/boost/changeset/47762
Log:
- tabs replaced
Text files modified:
sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/custom_point_test.cpp | 10 +++++-----
sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/performance_test_rtree.cpp | 39 ++++++++++++++++++++-------------------
2 files changed, 25 insertions(+), 24 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-24 11:28:40 EDT (Thu, 24 Jul 2008)
@@ -112,11 +112,11 @@
boost::spatial_index::spatial_index < my_2d_point, value_type,
boost::spatial_index::quadtree < my_2d_point, value_type > >q(b, 1);
-// std::cerr << " --> bulk insert" << std::endl;
-// std::vector<std::string>::iterator b, e;
-// b = data.begin();
-// e = data.end();
-// q.bulk_insert(b,e, points);
+ // std::cerr << " --> bulk insert" << std::endl;
+ // std::vector<std::string>::iterator b, e;
+ // b = data.begin();
+ // e = data.end();
+ // q.bulk_insert(b,e, points);
std::vector < std::string >::iterator it = data.begin();
Modified: sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/performance_test_rtree.cpp
==============================================================================
--- sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/performance_test_rtree.cpp (original)
+++ sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/performance_test_rtree.cpp 2008-07-24 11:28:40 EDT (Thu, 24 Jul 2008)
@@ -67,15 +67,15 @@
double drandom(unsigned int upper_bound)
{
- double r; /* random value in range [0,1) */
- long int M; /* user supplied upper boundary */
+ double r; /* random value in range [0,1) */
+ long int M; /* user supplied upper boundary */
struct timeval tv;
struct timezone tz;
gettimeofday(&tv, &tz);
srand(tv.tv_usec);
- M = upper_bound; /* Choose M. Upper bound */
+ M = upper_bound; /* Choose M. Upper bound */
r = ( (double)rand() / ((double)(RAND_MAX)+(double)(1)) );
return r * M;
@@ -121,9 +121,9 @@
std::cerr << "Insertion time: " << time(NULL) - start << " seconds."
<< std::endl;
- // std::cerr << "Elements: " << q.elements() << std::endl;
+ // std::cerr << "Elements: " << q.elements() << std::endl;
- // q.print();
+ // q.print();
// -- wait to check memory
// std::cerr << "check memory --> After Building Index." << std::endl;
@@ -156,8 +156,8 @@
start = time(NULL);
for(unsigned int j=0; j < find_count; j++) {
unsigned int i = q.find(search_positions[j]);
- // std::vector<unsigned int>::iterator it = q.find(search_positions[j]);
- //std::cout << search_data[j]
+ // std::vector<unsigned int>::iterator it = q.find(search_positions[j]);
+ // std::cout << search_data[j]
// << " - found in (" << search_positions[j].first << ","
// << search_positions[j].second << ") --> "
// << *it << std::endl;
@@ -185,18 +185,19 @@
std::cerr << "Removal time: " << time(NULL) - start << " seconds."
<< std::endl;
- // std::cerr << " --> complete removal tests" << std::endl;
- // unsigned int total = q.elements();
- // for(unsigned int j=0; j < total; j++) {
- // // unsigned int e = q.elements();
- // q.remove(geometry::box<geometry::point_xy<double> >(points[j],
- // points[j]));
- // // q.print();
- // // BOOST_CHECK_EQUAL(e, q.elements()+1);
- // // std::cerr << "Elements: " << e << std::endl;
- // }
- // std::cerr << std::endl;
- // q.print();
+ // std::cerr << " --> complete removal tests" << std::endl;
+ // unsigned int total = q.elements();
+ // for(unsigned int j=0; j < total; j++) {
+ // // unsigned int e = q.elements();
+ // q.remove(geometry::box<geometry::point_xy<double> >(points[j],
+ // points[j]));
+ // // q.print();
+ // // BOOST_CHECK_EQUAL(e, q.elements()+1);
+ // // std::cerr << "Elements: " << e << std::endl;
+ // }
+ // std::cerr << std::endl;
+ // q.print();
return 0;
}
+
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