Compare edge by edgebasednodeids

This commit is contained in:
DennisOSRM 2011-12-05 15:14:43 +01:00
parent 4f54c90a95
commit fe12ba23b0

View File

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