Preparing data structures for turn directions
This commit is contained in:
@@ -44,10 +44,11 @@ public:
|
||||
/** Default constructor. target and weight are set to 0.*/
|
||||
Edge() { assert(false); } //shall not be used.
|
||||
|
||||
explicit Edge(NodeID s, NodeID t, EdgeWeight w, bool f, bool b, bool l) : _source(s), _target(t), _weight(w), forward(f), backward(b), locatable(l) { }
|
||||
explicit Edge(NodeID s, NodeID t, NodeID n, EdgeWeight w, bool f, bool b, bool l) : _source(s), _target(t), _name(n), _weight(w), forward(f), backward(b), locatable(l) { }
|
||||
|
||||
NodeID target() const {return _target; }
|
||||
NodeID source() const {return _source;}
|
||||
NodeID source() const {return _source; }
|
||||
NodeID name() const { return _name; }
|
||||
EdgeWeight weight() const {return _weight; }
|
||||
|
||||
bool isBackward() const { return backward; }
|
||||
@@ -59,6 +60,7 @@ public:
|
||||
private:
|
||||
NodeID _source;
|
||||
NodeID _target;
|
||||
NodeID _name;
|
||||
EdgeWeight _weight:29;
|
||||
bool forward:1;
|
||||
bool backward:1;
|
||||
|
||||
Reference in New Issue
Block a user