4 #include "TiledGraphNode.h"
23 , LocalEdgeId(localEdgeId)
27 : CellKey(other.CellKey)
28 , LocalEdgeId(other.LocalEdgeId)
38 return (lhs.LocalEdgeId == rhs.LocalEdgeId) &&
39 (lhs.CellKey == rhs.CellKey);
42 inline std::string TiledGraphEdgeIdToString(
const TiledGraphEdgeId& edgeId)
45 ss << edgeId.CellKey.ToString() <<
":" << edgeId.LocalEdgeId;
54 std::size_t h2 = std::hash<int>{}(edgeId.LocalEdgeId);
55 return h1 ^ (h2 << 1);
63 , AttributesDirectionReversed(
false)
69 const TiledGraphEdgeAttributesId& attributesId,
71 bool attributesDirectionReversed
75 , AttributesId(attributesId)
77 , AttributesDirectionReversed(attributesDirectionReversed)
82 TiledGraphEdgeAttributesId AttributesId;
84 bool AttributesDirectionReversed;
89 return (lhs.NodeIdA == rhs.NodeIdA) &&
90 (lhs.NodeIdB == rhs.NodeIdB) &&
91 (lhs.AttributesId == rhs.AttributesId) &&
92 (lhs.Weight == rhs.Weight) &&
93 (lhs.AttributesDirectionReversed == rhs.AttributesDirectionReversed);