Commit Graph

173 Commits

Author SHA1 Message Date
Sebastien Loriot 14b83f0d3e
boost::tie -> std::tie (#8715) 2025-02-12 19:36:19 +01:00
Laurent Rineau e5001d1a50 update our CMake version 3.18...3.31
That will suppress the warnings about `CMP0167` (from CMake 3.30):

```
CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
```
2025-02-04 14:32:37 +01:00
Sébastien Loriot 107f3696dc boost::tie -> std::tie 2025-01-24 14:20:00 +01:00
Sébastien Loriot e7b8a4eb17 Merge pull request #8523 from lrineau/CGAL_CGAL-protect_against_macro_free-GF
protect CGAL against macro `free`
2024-10-18 18:00:37 +02:00
Andreas Fabri 42488c7876 free -> freelist; Comment define of _CRTDBG_MAP_ALLOC 2024-10-09 14:44:32 +01:00
Andreas Fabri 98d4690da7 Fix in Unique_hash_map 2024-10-09 13:45:26 +01:00
Sébastien Loriot 57858948d4 fix deps 2024-10-07 15:41:32 +02:00
Sébastien Loriot 1ca47bdabf add missing include directive 2024-10-04 16:09:54 +02:00
Laurent Rineau 3a223ebd1e cmake_minimum_required(VERSION 3.12...3.29) 2024-06-06 20:19:44 +02:00
Laurent Rineau cb933b1391 make Unique_hash_map movable 2024-04-26 14:42:36 +02:00
Andreas Fabri a42d56fc67 Add several #include 2024-03-14 10:09:07 +01:00
Mael Rouxel-Labbé 4fc486b195 Purge CMakeLists.txts from obsolete code / noise 2022-09-06 16:19:11 +02:00
Sebastien Loriot 4b9032f8c6
Merge pull request #6547 from afabri/Skeletoniation-HDS-GF
Skeletonization: Replace internally Polyhedron by HDS
2022-07-08 20:24:58 +02:00
Sébastien Loriot 4400120244 remove non-needed include directives 2022-06-16 09:54:57 +02:00
Laurent Rineau 734c96e951 Merge branch 'master' into pr/lrineau/6558 2022-05-06 16:25:32 +02:00
Laurent Rineau 2288225448 Massive update of CMake policies to version 3.23 2022-05-06 09:34:35 +02:00
Sébastien Loriot 4334028e15 add missing include directive 2022-05-03 18:10:39 +02:00
Sébastien Loriot cf369920a5 use prefix increment 2022-04-07 11:37:32 +02:00
Sébastien Loriot b3a654ebfe remove unused variable 2022-04-07 09:09:10 +02:00
Sébastien Loriot 3207dfedbc move file to internal 2022-04-06 16:07:16 +02:00
Sébastien Loriot ea3c6072ae rename variable 2022-04-06 14:56:13 +02:00
Sébastien Loriot 601b65cad2 use only one typedef 2022-04-06 13:36:39 +02:00
Sébastien Loriot 8c48ef4bfd fix order 2022-04-06 13:16:14 +02:00
Sébastien Loriot c27c162950 remove useless function
even worse some useless cleaning was done before deallocation
2022-04-06 12:08:14 +02:00
Sébastien Loriot e059d68e94 use the first element in the table
before 0 was used as a sentinel for checking if an element
was used, so table[0] could not be used.
2022-04-06 12:02:12 +02:00
Sébastien Loriot 157658848b remove tss variable
@afabri we must check with a benchmark if it does not penalize too much the code
2022-04-06 11:52:21 +02:00
Sébastien Loriot 14c9edb6b0 add reserve when inserting a range 2022-04-06 11:38:16 +02:00
Sébastien Loriot b8782cae39 make Unique_hash_map lookup thread safe
STOP.k was used in lookup
2022-04-06 11:24:24 +02:00
Sébastien Loriot 72f3cd282d use inline initialization 2022-04-06 11:14:50 +02:00
Sébastien Loriot dfadf57c8e remove unused functions 2022-04-06 11:13:24 +02:00
Sébastien Loriot a20c807e4e remove old_ data members
they are now only used locally during the call to rehash()
The only goal was the usage of old_index which seems not
needed anymore
2022-04-06 11:08:41 +02:00
Laurent Rineau ae28ae8a31
Merge pull request #6289 from afabri/Hash_map-benchmark-GF 2022-04-01 10:17:40 +02:00
Andreas Fabri d9d85fbe3c Move member variable position in initializer list 2022-03-18 09:08:38 +01:00
Giles Bathgate 16bed97ec5 Remove sizing of hash tables in copy constructors, size just grows 2022-03-17 20:21:12 +00:00
Giles Bathgate 933604b1e6 Init hashtable size in SNC_structure 2022-03-11 21:27:32 +00:00
Giles Bathgate d7be0897d1 Add reserve method to chained_map/Unique_hash_map 2022-03-10 18:24:07 +00:00
Giles Bathgate c12b42bb5e Initalise table on first access 2022-03-10 18:24:07 +00:00
Giles Bathgate 7d0d6a06be Use minimum size of 32, default size 512 2022-03-10 18:24:07 +00:00
Giles Bathgate 4e79edebc6 double should be an int 2022-02-04 18:01:12 +00:00
Giles Bathgate eb7d36e8b3 Use tabulated output to easily compare results 2022-02-04 17:56:32 +00:00
Giles Bathgate 2527f17b17 Replace tabs with spaces 2022-02-03 18:08:41 +00:00
Giles Bathgate 2663794269 Include benchmark for lookups of non-exsistant vertices 2022-02-03 17:55:44 +00:00
Giles Bathgate 74290b7a0e Use reserve only when available 2022-02-02 20:18:45 +00:00
Andreas Fabri 1a9f620031 Restructure the code so that the timer is not permanently switched on and off 2022-02-01 07:21:06 +00:00
Andreas Fabri 04abcd9c95 Initialize the point to avoid a warning 2022-01-18 14:47:56 +00:00
Sébastien Loriot ab48f63e30 update latest cmake version tested 2021-11-09 10:58:47 +01:00
Mael Rouxel-Labbé 8166579e55 Merge branch 'PM-Fix_pmaps_reference_types-GF' into PM-Fix_pmaps_reference_types_master-GF 2021-10-11 19:58:07 +02:00
Mael Rouxel-Labbé 590ddf8015 Various fixes for pmaps:
- Use `value_type` when the returned type is not a reference
- Enforce `reference = value_type` if the returned type is not
  a reference (to avoid `typename PM::reference r = get(m, k)`,
  which will take a ref to a temporary if the `reference`
  typedef is an actualy reference)
- Do not use `put_get_helper` if the property map is not a `lvalue`
  **mutable** property map: the `put()` is `map[k] = v`, which
  is broken if `operator[]` does not return a reference
- The concept `boost::lvalue_property_map_tag` requires `operator[](key)`,
  not a reference in `get(map, key)`. You can have a readable property map
  returning a reference through its `get(map, key)`, but if there is
  no `operator[]`, it's just a `boost::readable_property_map_tag`
- Some const correctness to avoid copying maps with state
  or heavy keys in `get(map, key)` / `put(map, key, value)`
- Base the category of a wrapping pmap on what it offers instead
  of just forwarding the base property map's category
- Tried to do something like mutable lvalue pmap:
  * `value_type& operator[](key&)`
  * `ref get(map, const key&)`
  * `put(map, const key&, const value_type&)`
  and non-mutable lvalue pmap:
  * `const value_type& operator[](const key&)`
  * `ref get(map, const key&)`
  but not everything fits properly...
2021-10-08 15:38:47 +02:00
Mael Rouxel-Labbé df560987a6 Whitespace & cleaning changes 2021-10-08 12:13:43 +02:00
Sébastien Loriot 47028cd184 automatically move data files in data dir + update paths
Done for OFF/OBJ/STL/XYZ/PWN/PLY
2021-10-04 09:42:49 +02:00