Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
15
libs/routing/base/astar_vertex_data.hpp
Normal file
15
libs/routing/base/astar_vertex_data.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
namespace routing::astar
|
||||
{
|
||||
template <typename Vertex, typename Weight>
|
||||
struct VertexData
|
||||
{
|
||||
static VertexData Zero() { return VertexData(Vertex(), Weight()); }
|
||||
|
||||
VertexData(Vertex const & vertex, Weight const & realDistance) : m_vertex(vertex), m_realDistance(realDistance) {}
|
||||
|
||||
Vertex m_vertex;
|
||||
Weight m_realDistance;
|
||||
};
|
||||
} // namespace routing::astar
|
||||
Loading…
Add table
Add a link
Reference in a new issue