Further refactorings
This commit is contained in:
parent
b5ed992e94
commit
ac15c787cc
@ -41,18 +41,25 @@ typedef boost::unordered_map<std::string, NodeID > StringMap;
|
|||||||
typedef boost::unordered_map<std::string, std::pair<int, short> > StringToIntPairMap;
|
typedef boost::unordered_map<std::string, std::pair<int, short> > StringToIntPairMap;
|
||||||
|
|
||||||
struct _Way {
|
struct _Way {
|
||||||
_Way() : id(UINT_MAX), nameID(UINT_MAX) {
|
_Way() {
|
||||||
|
Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void Clear(){
|
||||||
|
id = UINT_MAX;
|
||||||
|
nameID = UINT_MAX;
|
||||||
|
path.clear();
|
||||||
|
keyVals.EraseAll();
|
||||||
direction = _Way::notSure;
|
direction = _Way::notSure;
|
||||||
speed = -1;
|
speed = -1;
|
||||||
type = -1;
|
type = -1;
|
||||||
// useful = false;
|
|
||||||
access = true;
|
access = true;
|
||||||
roundabout = false;
|
roundabout = false;
|
||||||
isDurationSet = false;
|
isDurationSet = false;
|
||||||
isAccessRestricted = false;
|
isAccessRestricted = false;
|
||||||
ignoreInGrid = false;
|
ignoreInGrid = false;
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
notSure = 0, oneway, bidirectional, opposite
|
notSure = 0, oneway, bidirectional, opposite
|
||||||
|
Loading…
Reference in New Issue
Block a user