diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-27 18:00:48 +0300 |
---|---|---|
committer | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-10-27 18:00:48 +0300 |
commit | af001ed07b3dc6c974c5ad2906d4a25eb63ff874 (patch) | |
tree | 6289c0fe7e483b6dd547e5dd2f0edd1b863c4d6d /routing/cross_routing_context.hpp | |
parent | 17f7099da64a8e0a891dbcbfc516218deecbef86 (diff) |
MwmId usage inside a cross mwm road graph.
Diffstat (limited to 'routing/cross_routing_context.hpp')
-rw-r--r-- | routing/cross_routing_context.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/routing/cross_routing_context.hpp b/routing/cross_routing_context.hpp index f99578ff16..228c0dcfed 100644 --- a/routing/cross_routing_context.hpp +++ b/routing/cross_routing_context.hpp @@ -12,12 +12,12 @@ namespace routing { -// TODO (ldragunov) Fix this!!!! using WritedNodeID = uint32_t; using WritedEdgeWeightT = uint32_t; -static WritedEdgeWeightT const INVALID_CONTEXT_EDGE_WEIGHT = std::numeric_limits<WritedEdgeWeightT>::max(); -static WritedEdgeWeightT const INVALID_CONTEXT_EDGE_NODE_ID = std::numeric_limits<uint32_t>::max(); -static size_t constexpr kInvalidAdjacencyIndex = numeric_limits<size_t>::max(); + +WritedEdgeWeightT constexpr kInvalidContextEdgeNodeId = std::numeric_limits<uint32_t>::max(); +WritedEdgeWeightT constexpr kInvalidContextEdgeWeight = std::numeric_limits<WritedEdgeWeightT>::max(); +size_t constexpr kInvalidAdjacencyIndex = numeric_limits<size_t>::max(); struct IngoingCrossNode { @@ -27,7 +27,7 @@ struct IngoingCrossNode IngoingCrossNode() : m_point(ms::LatLon::Zero()) - , m_nodeId(INVALID_CONTEXT_EDGE_NODE_ID) + , m_nodeId(kInvalidContextEdgeNodeId) , m_adjacencyIndex(kInvalidAdjacencyIndex) { } @@ -52,7 +52,7 @@ struct OutgoingCrossNode OutgoingCrossNode() : m_point(ms::LatLon::Zero()) - , m_nodeId(INVALID_CONTEXT_EDGE_NODE_ID) + , m_nodeId(kInvalidContextEdgeNodeId) , m_outgoingIndex(0) , m_adjacencyIndex(kInvalidAdjacencyIndex) { |