Commit Graph
467 Commits
Author SHA1 Message Date
Marc Glisse 03e67005d0 Actually no need for virtual 2021-02-18 00:01:42 +01:00
Marc Glisse 2941c925fd AT_wrap needs to be virtual :-( 2021-02-17 23:26:29 +01:00
Marc Glisse 78f7d6917a missing declarations 2021-02-17 22:39:47 +01:00
Marc Glisse 52b07799b4 Bug fixing 2021-02-17 00:25:16 +01:00
Marc Glisse 005da847fa Use is_lazy instead of looking at private et. 2021-02-16 20:56:22 +01:00
Marc Glisse 62e6c41096 Minor optimization for Lazy_kernel
if a dynamic_cast succeeded, don't try again with a different type.
2021-02-16 00:01:30 +01:00
Marc Glisse 4335b167b7 Don't prune Construct_weighted_point_[23] arguments
Another thread might try to access them in one of the special cases in
Lazy_kernel.h. We could instead restrict the special cases to
single-thread, but I think that would be worse.
2021-02-15 23:50:39 +01:00
Marc Glisse a3713f7c27 reset operation to prune trees 2021-02-15 23:22:19 +01:00
Marc Glisse 35cc507179 comment 2021-01-30 11:55:30 +01:00
Marc Glisse a3c1a20f1d comment 2021-01-14 01:01:06 +01:00
Marc Glisse 93f415f717 comment 2021-01-14 00:26:45 +01:00
Marc Glisse 9efa9b5117 CGAL_HAS_THREADS 2021-01-11 22:27:46 +01:00
Marc Glisse 9f0f7eb033 is_currently_single_threaded 2021-01-11 19:40:13 +01:00
Marc Glisse 40ff696e19 Unused #include 2021-01-11 16:38:14 +01:00
Marc Glisse f90cec8862 Remove is_point wrapper
This doesn't seem to provide anything useful with the current
implementations. It probably helped avoid an atomic operation in some
earlier version.
2021-01-11 09:14:59 +01:00
Marc Glisse 60891a92d1 selector for the Lazy_rep implementation 2021-01-11 09:12:50 +01:00
Marc Glisse b752dd3d80 Missing Lazy_exact_Ex_Cst 2021-01-10 18:10:42 +01:00
Marc Glisse 5ccab34c18 Mark some classes final 2021-01-09 23:54:52 +01:00
Marc Glisse acec599062 General unsafe version 2021-01-09 23:47:52 +01:00
Marc Glisse bbc78910e8 unsafe version for intervals 2021-01-09 20:19:34 +01:00
Marc Glisse d4ad29566a other version 2020-11-18 00:52:45 +01:00
Marc Glisse 9e160d6e36 Destructor 2020-11-14 22:47:07 +01:00
Marc Glisse ad34659b19 Special-case intervals 2020-11-14 15:00:47 +01:00
Marc Glisse d7555a383c improve approximate type 2020-11-14 13:24:22 +01:00
Marc Glisse 2112f0087c call_once version 2020-11-14 10:59:44 +01:00
Marc Glisse 9d554b9ae6 mention std::call_once 2020-11-14 00:01:47 +01:00
Marc Glisse b88dd3be85 Use default-constructed Lazy more. 2020-11-13 23:13:43 +01:00
Marc Glisse 6c2bf2c90b alternate (not working) version 2020-11-13 21:12:22 +01:00
Marc Glisse 6338f89ae4 conditional code for TSAN 2020-11-13 19:39:24 +01:00
Marc Glisse bf0a42d740 lock-like protection for update_exact
The exact choice of memory_order_* is hard, and even for versions that
seem to work on x86_64 TSAN complains like crazy.

TODO: a version that, instead of blocking if another thread is updating,
also does the computation, with suitable protection to ensure that
pruning the tree cannot happen while anyone is computing on it.

TODO: try having AT in Lazy instead of Lazy_rep (i.e. not shared) to
avoid the indirection. We can possibly choose one or the other depending
on the type.
2020-11-13 19:39:24 +01:00
Marc Glisse ba054d51c2 set_exact minor refactor 2020-11-13 19:39:24 +01:00
Marc Glisse 7151181f8c Indirection for the approximate value in Lazy 2020-11-13 19:39:24 +01:00
Marc Glisse c862e7b903 atomic update_exact 2020-11-13 19:39:24 +01:00
Jane Tournois 5c8df6672a remove CGAL_CFG_MATCHING_BUG_ variants
the "matching bug" of msvc has been fixed since at least vs 2015
2020-09-25 14:25:14 +02:00
Laurent Rineau 650939edb5 Merge branch 'releases/CGAL-5.0-branch' 2020-09-11 15:07:58 +02:00
Mael Rouxel-Labbé da4a9c4ff5 Add missing header includes 2020-09-08 10:33:00 +02:00
Laurent Rineau 319383c963 Revert "Merge pull request #4519 from lrineau/Kernel_23-Epeck_objects_in_Compact_container-lrineau_gdamiand"
This reverts commit bcab082f82, reversing
changes made to 2d3e126450.
2020-05-20 09:47:58 +02:00
Sebastien Loriot bcab082f82 Merge pull request #4519 from lrineau/Kernel_23-Epeck_objects_in_Compact_container-lrineau_gdamiand
Enable the use of Lazy objects in Compact_container
2020-04-29 13:56:59 +02:00
Maxime Gimeno 5b2d46cfa0 Fixes for min/max 2020-04-21 12:04:45 +02:00
Maxime Gimeno e9d41d7b7d Fixes for min/max 2020-04-21 11:38:37 +02:00
Marc Glisse fe3ff9c19f Deduce reference return type in approx()
By default, lambdas deduce the return type as a value type, not a
reference.
2020-03-31 21:02:32 +02:00
Sébastien Loriot 97e46accad extra run of the script to remove tabs and trailing whitespaces 2020-03-26 19:26:37 +01:00
Sébastien Loriot 34ce87be56 Update branch from master after trailing whitespaces and tabs removal 2020-03-26 19:26:15 +01:00
Sébastien Loriot 8bb22d5b2c extra run of the script to remove tabs and trailing whitespaces
right after the merge of the 5.0 release branch

+ manual fix of the files (indentation was changed in the meantime):
   * Spatial_sorting/include/CGAL/Multiscale_sort.h
   * Spatial_sorting/test/Spatial_sorting/test_multiscale.cpp
2020-03-26 14:26:59 +01:00
Sébastien Loriot 8b153fb495 Merge branch 'cgal/releases/CGAL-5.0-branch'
whitespace+tab removal, merged with option -Xignore-space-change
2020-03-26 14:22:32 +01:00
Sébastien Loriot 0779373835 extra run of the script to remove tabs and trailing whitespaces
right after the  merge of 4.14 release branch

+ manual fix on one line in:
    * Arrangement_on_surface_2/include/CGAL/IO/Arr_text_formatter.h
    * .travis/generate_travis.sh
2020-03-26 14:16:06 +01:00
Sébastien Loriot 0a46621dc6 Merge branch 'cgal/releases/CGAL-4.14-branch'
whitespace+tab removal, merged with option -Xignore-all-space
2020-03-26 13:28:46 +01:00
Sébastien Loriot 590612a563 run the script to remove tabs and trailing whitespaces 2020-03-26 13:25:16 +01:00
Sebastien Loriot 6b2b1e8470 Merge pull request #4238 from sloriot/sloriot/CGAL-Variadics
use Variadic templates
2020-03-17 18:21:56 +01:00
Guillaume Damiand 650a7dcbc2 Merge branch 'master' into Kernel_23-Epeck_objects_in_Compact_container-lrineau_gdamiand 2020-03-16 16:24:54 +01:00