4 #include "TiledGraphNode.h"
5 #include "TiledGraphEdge.h"
6 #include "TransportWay.h"
7 #include "TransportNode.h"
19 , LocalDirectedEdgeId(-1)
20 , TransportNetworkType(TransportNetwork::TransportRoad)
24 TransportNetwork::Type transportNetworkType,
26 TransportLocalDirectedEdgeId localDirectedEdgeId
29 , LocalDirectedEdgeId(localDirectedEdgeId)
30 , TransportNetworkType(transportNetworkType)
34 TransportNetwork::Type transportNetworkType,
37 : CellKey(graphEdgeId.CellKey)
38 , LocalDirectedEdgeId(graphEdgeId.LocalEdgeId)
39 , TransportNetworkType(transportNetworkType)
43 TransportLocalDirectedEdgeId LocalDirectedEdgeId;
44 TransportNetwork::Type TransportNetworkType;
49 return (lhs.LocalDirectedEdgeId == rhs.LocalDirectedEdgeId) &&
50 (lhs.CellKey == rhs.CellKey) &&
51 (lhs.TransportNetworkType == rhs.TransportNetworkType);
60 std::size_t h2 = std::hash<int>{}(edgeId.LocalDirectedEdgeId);
61 std::size_t h3 = std::hash<int>{}(edgeId.TransportNetworkType);
62 return (h1 ^ (h2 << 1)) ^ (h3 << 1);