Preparing data structures for turn directions

This commit is contained in:
Dennis Luxen
2010-09-23 15:34:22 +00:00
parent 586e8b4c4b
commit 76488c58e8
7 changed files with 58 additions and 29 deletions
+4 -2
View File
@@ -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;