Compare edge by edgebasednodeids

This commit is contained in:
DennisOSRM 2011-12-05 15:14:43 +01:00 committed by Emil Tin
parent dbc5529bde
commit 0ec72f40f0

View File

@ -29,6 +29,12 @@ struct _GridEdge {
int weight; int weight;
_Coordinate startCoord; _Coordinate startCoord;
_Coordinate targetCoord; _Coordinate targetCoord;
bool operator< ( const _GridEdge& right) const {
return edgeBasedNode < right.edgeBasedNode;
}
bool operator== ( const _GridEdge& right) const {
return edgeBasedNode == right.edgeBasedNode;
}
}; };
struct GridEntry { struct GridEntry {