Commit Graph

171 Commits

Author SHA1 Message Date
Adam Wulkiewicz
da5a91bad4 static_vector error fixed, tests added.
[SVN r81960]
2012-12-14 22:59:19 +00:00
Adam Wulkiewicz
479c6a3bab Error fixed in static_vector::at().
Added test for static_vector.

[SVN r81958]
2012-12-14 22:35:46 +00:00
Adam Wulkiewicz
b22bd9525c assertion added in static_vector::assign();
[SVN r81954]
2012-12-14 21:46:53 +00:00
Adam Wulkiewicz
bbba565874 Compilation error fixed.
[SVN r81953]
2012-12-14 21:28:04 +00:00
Adam Wulkiewicz
17ed2a700b static_vector resize() and corresponding ctor divided into 2 methods/ctors (C++11).
First one uses default ctors (for noncopyable values).
Second one uses copy ctors (for values with no default ctor).

[SVN r81952]
2012-12-14 21:26:14 +00:00
Adam Wulkiewicz
3005f91f84 Small improvement to the nearest_query added.
[SVN r81949]
2012-12-14 19:46:18 +00:00
Adam Wulkiewicz
627452da2a Added rtree::count() method. Docs modified.
[SVN r81947]
2012-12-14 19:15:34 +00:00
Adam Wulkiewicz
d7cf32bcfa Rtree value_type must no longer have default ctor defined.
Added static_vector::assign(), added assertion in static_vector::resize().
Added test for value without default ctor..

[SVN r81940]
2012-12-14 14:49:45 +00:00
Adam Wulkiewicz
8f67c58ea4 rtree::assign() commented out.
[SVN r81936]
2012-12-14 12:07:25 +00:00
Adam Wulkiewicz
79436250e5 Added assign() to the rtree interface. Fixed compilation error in static_vector.
[SVN r81935]
2012-12-14 11:58:40 +00:00
Adam Wulkiewicz
95000752cd static_vector changes: added MPL_ASSERT, added difference_type.
[SVN r81934]
2012-12-14 11:33:48 +00:00
Adam Wulkiewicz
4022ec2ccc added val_ref parameter to static_vector::resize() and constructor, added methods max_size(), data(), at(), added some comments
[SVN r81931]
2012-12-14 04:18:21 +00:00
Adam Wulkiewicz
ae07c29360 added optimized versions of static_vector operations, however preliminary tests on linux shows no speed difference
[SVN r81930]
2012-12-14 02:02:52 +00:00
Adam Wulkiewicz
a8f5d60f93 Added optimized uninitialized_copy() and destroy() to static_vector.
[SVN r81925]
2012-12-14 00:13:20 +00:00
Adam Wulkiewicz
34768c2fb2 Some VS warnings fixed.
[SVN r81923]
2012-12-13 23:08:37 +00:00
Adam Wulkiewicz
6f103fc04e explicit keyword added in static_vector.
[SVN r81895]
2012-12-13 13:16:06 +00:00
Adam Wulkiewicz
aaf737a5ce static_vector implemented and used in the rtree instead of pushable_array
[SVN r81885]
2012-12-13 03:34:54 +00:00
Adam Wulkiewicz
00481f40c2 BOOST_ASSERT used instead of std assert
[SVN r81812]
2012-12-10 01:21:00 +00:00
Adam Wulkiewicz
dd6430083d Coding style improved (issues detected by Boost Inspect tool).
[SVN r81802]
2012-12-08 23:47:52 +00:00
Adam Wulkiewicz
f4f0094c3a Merged from index_dev
Fixed rtree::clear() mem leak.
Added test for clear() and boost::shared_ptr as Values.
Each linear algo test file divided into 2 files.
Added reference in docs->rtree introduction.

[SVN r81778]
2012-12-07 22:52:53 +00:00
Adam Wulkiewicz
640ae6ced6 Inserter included in the rtree.hpp
Added docs regarding inserter and creation of the rtree from the query results.
Added info about comparison of tuples in default translator.
Merged from index_dev.

[SVN r81582]
2012-11-26 22:20:38 +00:00
Adam Wulkiewicz
6f5b384b93 Merged from index_dev.
not_xxx predicates generators removed.
Added rtree constructor, insert() and remove() taking Range.
Added default translator for boost::tuple<>.
Each R*tree test divided into 2 files.
Docs updated/modified/fixed.

[SVN r81571]
2012-11-26 18:54:09 +00:00
Adam Wulkiewicz
e1a14edce2 Merged from index_dev.
Docs improved (images added). Some samples and tests modified.

[SVN r81542]
2012-11-25 21:38:31 +00:00
Adam Wulkiewicz
f7d7e88bbb Modified glut_vis additional test and added generated rtree images.
[SVN r81528]
2012-11-25 17:28:12 +00:00
Adam Wulkiewicz
5a6e87b146 Pointers and Iterators types removed from the default Translator.
[SVN r81523]
2012-11-24 22:17:08 +00:00
Adam Wulkiewicz
80be48d155 Added rtree::swap() method.
Added requirement 'Nonthrowing copy constructor of the Translator'.



[SVN r81512]
2012-11-24 19:54:36 +00:00
Adam Wulkiewicz
a901b88244 Fixed nullptr dereference errors. Merged from index_dev.
[SVN r81484]
2012-11-22 14:47:16 +00:00
Adam Wulkiewicz
e5766cf57e Fixed nullptr dereference errors.
[SVN r81483]
2012-11-22 14:45:32 +00:00
Adam Wulkiewicz
52e8317c3b warnings fixed, query and nearest visitors renamed
[SVN r81482]
2012-11-22 11:31:58 +00:00
Adam Wulkiewicz
0ccbb1fe0c some of warnings fixed.
[SVN r81481]
2012-11-22 11:28:21 +00:00
Adam Wulkiewicz
b42b3e3c9f nearest and query visitors renamed.
[SVN r81471]
2012-11-22 01:54:21 +00:00
Adam Wulkiewicz
46816e4c44 merged from index_dev.
Fixed memory leaks mostly related to exception-safety issues.
Modified docs, added tests.

[SVN r81458]
2012-11-21 15:47:51 +00:00
Adam Wulkiewicz
7bbf242891 Improved exception safety of the r-tree.
Requirement 'nonthrowing copy constructor of the BoundingObject/CoordinateType' changed to 'exception-safe copy constructor of the BoundingObject/CoordinateType'.
From now the r-tree do not use erase() method of the elements containers. It uses copy_from_back() and pop_back() instead.
erase() removed from pushable_array.
Added various memory leaks fixes taking throwing by Element's copy constructor into account.
Tests added.
Docs modified.

[SVN r81445]
2012-11-20 22:49:14 +00:00
Adam Wulkiewicz
7ed71e5324 Fixed memleak for CoordinateType/BoundingObject which have throwing copy constructor for R*tree.
Added comments regarding exception-safety.

[SVN r81438]
2012-11-20 17:00:41 +00:00
Adam Wulkiewicz
e2beb3cf2f Safety issue fixed in pushable_array.
Filenames related to filters(old name) changed to adaptors.

[SVN r81436]
2012-11-20 13:45:48 +00:00
Adam Wulkiewicz
ff1ccbdf29 Translator copy ctor exception handled.
Exception-safety docs moddified.



[SVN r81365]
2012-11-16 12:43:34 +00:00
Adam Wulkiewicz
04cf9fbc39 A cosmetic change in raw_destroy().
Some of the rtree member types and methods made private unless BOOST_GEOMETRY_INDEX_ENABLE_DEBUG_INTERFACE is defined.



[SVN r81355]
2012-11-15 11:23:36 +00:00
Adam Wulkiewicz
00c54279b4 std::vector MS implementation memory leak workaround added.
[SVN r81351]
2012-11-14 23:55:53 +00:00
Adam Wulkiewicz
6b456b1fc7 remove() don't return if there is no root, assertion check is done in raw_remove().
Docs updated.

[SVN r81350]
2012-11-14 23:35:14 +00:00
Adam Wulkiewicz
593ab6d9fb Names changed query to spatial_query, nearest to nearest_query, query_filtered to adaptors::spatial_queried, nearest_filtered to adaptors::nearest_queried.
[SVN r81349]
2012-11-14 21:59:37 +00:00
Adam Wulkiewicz
118ec2fbf6 Error related to the state of the rval after moving fixed. The root being NULL is valid state. Root is created lazily, if needed. This means that default constructor won't throw as well as moving operations.
[SVN r81345]
2012-11-14 17:12:23 +00:00
Adam Wulkiewicz
0ce013bdba mem leaks related exceptions in rtree copying fixed
[SVN r81340]
2012-11-14 14:37:09 +00:00
Adam Wulkiewicz
b00198e311 mem leaks related to exceptions in remove fixed
[SVN r81325]
2012-11-13 22:13:17 +00:00
Adam Wulkiewicz
6a1f024055 exceptions test improved.
[SVN r81302]
2012-11-12 01:07:59 +00:00
Adam Wulkiewicz
25e10f2539 potential mem leaks fixed in inserting algorithms, exceptions tests added.
[SVN r81301]
2012-11-12 00:47:07 +00:00
Adam Wulkiewicz
d008473125 mem leaks related to exceptions fixed in linear redistribute_elements.
[SVN r81284]
2012-11-10 13:29:07 +00:00
Adam Wulkiewicz
4dc16eb40d Exception-safety of the default insert and split algorithms improved.
[SVN r81280]
2012-11-10 10:25:56 +00:00
Adam Wulkiewicz
b164ec22c4 Added exact_match parameter to are_boxes_ok() check.
[SVN r80982]
2012-10-13 23:26:25 +00:00
Adam Wulkiewicz
0ab8fb772b merged from index_dev.
clang warnings and error in nearest_k fixed.
added insert_traverse_data.
added additional tests.

[SVN r80841]
2012-10-04 09:37:39 +00:00
Adam Wulkiewicz
a8356c2625 fixed some warnings and error, added nearest query test which don't find all values.
[SVN r80838]
2012-10-03 23:59:01 +00:00