DHART
|
A single row of a distance and predecessor matrix. More...
Public Member Functions | |
DistPred () | |
Construct a new instance of DistPred with empty distance and predecessor arrays. More... | |
DistPred (int n) | |
Allocate enough space for n elements. More... | |
Public Attributes | |
std::vector< float > | distance |
Distance array. More... | |
std::vector< vertex_descriptor > | predecessor |
Predecessor array. More... | |
A single row of a distance and predecessor matrix.
DistPred holds the distance and predecessor arrays for a single node, all the information needed to generate a path for the node it was generated from.
Definition at line 48 of file path_finder.cpp.
|
inline |
Construct a new instance of DistPred with empty distance and predecessor arrays.
Definition at line 55 of file path_finder.cpp.
|
inline |
Allocate enough space for n elements.
n | Size to allocate for both the distance and predecessor arrays. |
Definition at line 61 of file path_finder.cpp.
References distance, and predecessor.
std::vector<float> HF::Pathfinding::DistPred::distance |
Distance array.
Definition at line 49 of file path_finder.cpp.
Referenced by DistPred(), HF::Pathfinding::BuildDistanceAndPredecessor(), and HF::Pathfinding::ConstructShortestPathFromPred().
std::vector<vertex_descriptor> HF::Pathfinding::DistPred::predecessor |
Predecessor array.
Definition at line 50 of file path_finder.cpp.
Referenced by DistPred(), HF::Pathfinding::BuildDistanceAndPredecessor(), and HF::Pathfinding::ConstructShortestPathFromPred().