Daniel J. Hofmann
62b20769ee
Modernize the code base to C++11 standards and beyond.
...
Apply `clang-modernize` (based on Clang 3.6) transformations to the
codebase while making sure to support Clang>=3.4 and GCC>=4.8.
We apply the transformations in parallel to speed up the quite
time consuming process, and use our `clang-format` style file
to automatically format the code respecting our coding conventions.
We use the following self-explanatory transformations:
* AddOverride
* LoopConvert
* PassByValue
* ReplaceAutoPtr
* UseAuto
* UseNullptr
This required a `compile_commands.json` compilation database, e.g.
ccmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=1
for CMake or check Bear for a Makefile based solution (or even Ninja).
git ls-files -x '*.cpp|*.h' | \
xargs -I{} -P $(nproc) clang-modernize -p build -final-syntax-check -format -style=file -summary -for-compilers=clang-3.4,gcc-4.8 -include . -exclude third_party {}
Boom!
References:
* http://clang.llvm.org/extra/clang-modernize.html
* http://clang.llvm.org/extra/ModernizerUsage.html
2015-08-18 12:56:34 +02:00
Patrick Niklaus
9958937fd1
At least check 4*LEAF_SIZE edges before returning none.
2015-07-01 17:57:03 +02:00
Patrick Niklaus
1164a65df8
Refactor processing_chain by splitting into sub functions
2015-05-28 15:18:48 +02:00
Patrick Niklaus
4c03ace9eb
Remove pruning in IncrementalFindPhantomNode
2015-05-25 02:07:01 +02:00
Patrick Niklaus
fd9bb3ac43
Only activate pruning for big cc after one was found
2015-05-18 09:41:41 +02:00
Patrick Niklaus
1b0d8739c1
Increase max distance to 1100 to fix unrelated test cases
2015-05-15 00:34:34 +02:00
Patrick Niklaus
c4c6ab2494
Use distance based search radius
...
This limits the nearest neighbour search to a maximum distance
of 1000 meters, but will also work in dense areas.
2015-05-14 22:24:07 +02:00
Dennis Luxen
b9922bc90b
replace C-style comments
2015-03-03 17:43:37 +01:00
Patrick Niklaus
f092fc3fc6
Fix minimum number of candidates
2015-03-03 00:48:56 +01:00
Patrick Niklaus
3a5e41ed91
Implement missing matching pieces
2015-03-03 00:48:55 +01:00
Dennis Luxen
2259bce05f
Add skeleton code for matching
2015-03-03 00:48:55 +01:00
Dennis Luxen
3bd27ae8c5
change copyright line from personal names to project
2015-02-19 09:19:51 +01:00
Dennis Luxen
e5f12347bd
simplify code by using new phantom node ctor
2015-02-13 14:26:19 +01:00
Dennis Luxen
b20b7e65bf
renamed: Util/* -> util/*
2015-01-27 17:47:23 +01:00
Dennis Luxen
3fa12445a5
rename coordinate calculation functions, remove code clutter
2015-01-22 16:28:40 +01:00
Dennis Luxen
547a2aec09
remove dead/redundant code
2015-01-22 15:50:04 +01:00
Dennis Luxen
01f3237416
speed up nearest neighbor query by pruning, move coordinate calculations away from library interface
2015-01-20 16:24:49 +01:00
Dennis Luxen
bf71781ee9
new file: Util/mercator.cpp
...
renamed: Util/MercatorUtil.h -> Util/mercator.hpp
2015-01-13 14:57:23 +01:00
Dennis Luxen
b50a907ca3
fix changed include paths
2015-01-06 13:17:12 +01:00
Dennis Luxen
25326b571b
renamed: Util/OSRMException.h -> Util/osrm_exception.hpp
2015-01-05 15:40:05 +01:00
Dennis Luxen
9722f56be8
remove more debug code
2015-01-02 16:41:36 +01:00
Dennis Luxen
55d47b3e31
reimplement incremental nearest neighbor query
2015-01-02 09:36:27 +01:00
Dennis Luxen
d7215ad185
fix tests, temporarily disable one test case
2014-12-24 13:03:05 +01:00
Dennis Luxen
2b63eb8243
remove zoom level from nearest neighbor calls
2014-12-24 10:40:03 +01:00
Dennis Luxen
1bb3da0332
expose component_id in phantom node
2014-12-24 10:25:27 +01:00
Dennis Luxen
c7d3d635f6
fix test compile
2014-12-23 17:18:32 +01:00
Dennis Luxen
f4c8db6105
- serialize component_id
...
- remove calls to deprecated NN function in facades
2014-12-23 16:14:28 +01:00
Dennis Luxen
2ebe2faa74
renamed Util/TimingUtil.h -> Util/timing_util.hpp
2014-12-17 17:33:31 +01:00
Dennis Luxen
58de37e822
renamed: DataStructures/* -> data_structures/*
2014-11-28 12:15:31 +01:00