|
Boost-Commit : |
From: mariano.consoni_at_[hidden]
Date: 2008-06-18 11:27:55
Author: mconsoni
Date: 2008-06-18 11:27:54 EDT (Wed, 18 Jun 2008)
New Revision: 46480
URL: http://svn.boost.org/trac/boost/changeset/46480
Log:
- more node removal
Text files modified:
sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test_rtree.cpp | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
Modified: sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test_rtree.cpp
==============================================================================
--- sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test_rtree.cpp (original)
+++ sandbox/SOC/2008/spacial_indexing/libs/spatial_index/test/simple_test_rtree.cpp 2008-06-18 11:27:54 EDT (Wed, 18 Jun 2008)
@@ -94,6 +94,10 @@
geometry::box<geometry::point_xy<double> > e28(geometry::point_xy<double>(9.0, 13.0), geometry::point_xy<double>(10.0,14.0));
geometry::box<geometry::point_xy<double> > e29(geometry::point_xy<double>(9.0, 10.0), geometry::point_xy<double>(15.0,15.0));
+ geometry::box<geometry::point_xy<double> > e30(geometry::point_xy<double>(9.0, 13.0), geometry::point_xy<double>(9.5,14.0));
+ geometry::box<geometry::point_xy<double> > e31(geometry::point_xy<double>(10.0, 10.0), geometry::point_xy<double>(14.0,15.0));
+
+
std::cerr << " --> insert env" << std::endl;
q->insert(e1, 1);
@@ -141,6 +145,9 @@
q->insert(e28, 28);
q->insert(e29, 29);
+ q->insert(e30, 30);
+ q->insert(e31, 31);
+
q->print();
/// find everything overlaping with an envelope
@@ -178,16 +185,23 @@
std::cout << "Value: " << v << std::endl;
}
- return 0;
-
// remove test
std::cerr << " --> remove" << std::endl;
q->remove(geometry::box<geometry::point_xy<double> >(geometry::point_xy<double>(10.0,10.0), geometry::point_xy<double>(12.0,13.0)));
+ q->print();
std::cerr << " --> remove" << std::endl;
-// q->print();
q->remove(geometry::box<geometry::point_xy<double> >(geometry::point_xy<double>(7.0,4.0), geometry::point_xy<double>(12.0,7.0)));
q->print();
+ std::cerr << " --> remove" << std::endl;
+ q->remove(geometry::box<geometry::point_xy<double> >(geometry::point_xy<double>(10.0,12.0), geometry::point_xy<double>(13.0,13.0)));
+ q->print();
+
+ std::cerr << " --> remove" << std::endl;
+ q->remove(geometry::box<geometry::point_xy<double> >(geometry::point_xy<double>(10.0,10.0), geometry::point_xy<double>(11.0,11.0)));
+ 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