Dennis Luxen
efbcce0ffe
use bitfields to reduce struct size of segment information. size goes down from 28->24 bytes
2015-01-23 13:53:02 +01:00
Dennis Luxen
1c2c87e03d
fix boundary edge case
2015-01-23 13:52:44 +01:00
Dennis Luxen
93b33c0518
fix cast to be explicit
2015-01-23 13:52:28 +01:00
Dennis Luxen
53e01952be
replace for loops with counters by range-based for loops
2015-01-23 12:19:01 +01:00
Dennis Luxen
1c12b468a8
replace for loop with hand-rolled pair-wise traverse of container with call to for_each_pair; fix target type of cast
2015-01-23 12:11:51 +01:00
Dennis Luxen
ccd803416e
fix unintended float/epsilon<double> comparison
2015-01-23 11:49:02 +01:00
Dennis Luxen
62f2a42f28
reduce cyclomatic complexity in double->string bearing conversion
2015-01-23 11:44:35 +01:00
Dennis Luxen
d6e76fd1c0
add whitespace
2015-01-23 11:38:47 +01:00
Dennis Luxen
9135c56ac6
fix implicit float/double conversion, use casts
2015-01-23 11:26:47 +01:00
Dennis Luxen
0e7eff3963
rename short variable names in mercator to be more telling
2015-01-23 11:14:29 +01:00
Dennis Luxen
bd1928e445
rename short variable names to be more telling
2015-01-23 09:47:44 +01:00
Dennis Luxen
8e105af232
remove redundant code from switch statement in restriction parser
2015-01-23 09:25:05 +01:00
Dennis Luxen
796cbafde4
add missing include in release build
2015-01-22 17:57:38 +01:00
Dennis Luxen
29354a1586
fix bearing computation
2015-01-22 17:07:04 +01:00
Dennis Luxen
bcd73e604c
reformat coordinate and rtree test code
2015-01-22 17:00:48 +01:00
Dennis Luxen
e80ca6553d
use new coordinate interface in unit tests
2015-01-22 16:58:45 +01:00
Dennis Luxen
90f17c2140
remove is_set() and reset() functions from coordinate
2015-01-22 16:55:34 +01:00
Dennis Luxen
2e5cc1e6ae
remove redundant code and streamline coordinate interface
2015-01-22 16:48:53 +01:00
Dennis Luxen
0ea7fd9c3d
remove more dead/unused functions
2015-01-22 16:41:04 +01:00
Dennis Luxen
814d9aa01b
reformat code source file
2015-01-22 16:33:27 +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
9175fb7da8
remove unused debug code
2015-01-22 15:19:43 +01:00
Dennis Luxen
887032881a
use std::any_of() algorithm instead of hand-rolled logic
2015-01-22 15:09:24 +01:00
Dennis Luxen
e67f82283f
replace temporary variable with short name by atomic<>.load call
2015-01-22 13:47:31 +01:00
Dennis Luxen
cfa83658dc
Use early exit/continue to simplify code and reduce indentation
2015-01-22 12:39:41 +01:00
Dennis Luxen
c881aa7b32
Use early exit/continue to simplify code and reduce indentation, move increase/decrease query count into functions
2015-01-22 12:38:48 +01:00
Dennis Luxen
a8db29399f
remove unneeded else block in if statement
2015-01-22 12:28:00 +01:00
Dennis Luxen
baacd0e50c
reformat source files
2015-01-22 12:24:54 +01:00
Dennis Luxen
0f8c3b1960
fix copyright year
2015-01-22 12:18:48 +01:00
Dennis Luxen
cd523cc934
conflate collapsable if statements
2015-01-22 12:14:14 +01:00
Dennis Luxen
044271a55c
specialize insert function to pass by reference for non-fundamental types by using type traits
2015-01-22 11:02:49 +01:00
Dennis Luxen
f662b9a081
install libgdal-dev on Travis
2015-01-20 18:45:49 +01:00
Dennis Luxen
ba10f97420
add third_party directory node to the include dirs
2015-01-20 18:23:10 +01:00
Dennis Luxen
50c460ebd5
install mapbox/variant headers from third_party directory
2015-01-20 18:07:45 +01:00
Dennis Luxen
501863a0eb
move external dependence mapbox/variant into third_party directory
2015-01-20 18:06:26 +01:00
Dennis Luxen
ec9b2dbe42
remove debug info from binaries
2015-01-20 17:57:47 +01:00
Dennis Luxen
db2ba22bd6
fix tests to run with new header coordinate_calculations
2015-01-20 17:56:50 +01:00
Dennis Luxen
087f08dad2
also build tests on travis CI
2015-01-20 17:56:30 +01:00
Dennis Luxen
bf7b146dfc
Merge pull request #1350 from Project-OSRM/feature/prune_incremental_search
...
speed up nearest neighbor query by pruning
2015-01-20 17:36:23 +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
8f813fbc67
clear result nodes/way in parser for each parsed element
2015-01-20 11:25:21 +01:00
Dennis Luxen
f4ff695080
replace conditional operator by explicit serialization
2015-01-20 10:50:33 +01:00
Dennis Luxen
08cc2bbd70
move thread local variables out of parsing scope
2015-01-16 18:22:37 +01:00
Dennis Luxen
46a7e46068
serialize lvalues as MSVC barfs out on serializing the return value of the conditional operator
2015-01-16 18:12:21 +01:00
Dennis Luxen
472a567f42
add cmath include to fix call to std::abs() on clang compiler, reorder includes
2015-01-16 17:23:29 +01:00
Dennis Luxen
f3bc1ed3a9
make floating point number literal a float
2015-01-16 17:21:02 +01:00
Dennis Luxen
7ba9b97afc
reorder members of internal extractor edge. 56->40 bytes
2015-01-16 17:11:30 +01:00
Dennis Luxen
061d281d2a
serialize bitfields thru local member mockups
2015-01-16 17:10:31 +01:00
Dennis Luxen
2835508292
fixes #1346 :
...
- use const_iterator where it makes sense
- fix renumbering of turn restriction members
- remove redundant code
- fix counting of usable turn restrictions
2015-01-16 15:56:49 +01:00