DHART
|
Holds and maintains a distance and predecessor matrix. More...
#include <path_finder.h>
Public Member Functions | |
DistanceAndPredecessor (int size) | |
Create and allocate a pair of distance and predecessor arrays. More... | |
float * | GetRowOfDist (int i) |
Get a pointer to the beginning of the ith row of the distance array. More... | |
int * | GetRowOfPred (int i) |
Get a pointer to the beginning of the ith row of the predecessor array. More... | |
Public Attributes | |
std::vector< float > * | dist |
std::vector< int > * | pred |
int | size = 0 |
Number of rows and colums. More... | |
Holds and maintains a distance and predecessor matrix.
Definition at line 409 of file path_finder.h.
|
inline |
Create and allocate a pair of distance and predecessor arrays.
size | Number of rows and columns. Size of each array will be this to the power of 2 |
All arrays will be initialized with NAN as their default values
Definition at line 423 of file path_finder.h.
|
inline |
Get a pointer to the beginning of the ith row of the distance array.
i | Index of the row to get. |
Definition at line 439 of file path_finder.h.
Referenced by HF::Pathfinding::GenerateDistanceAndPred(), and operator<<().
|
inline |
Get a pointer to the beginning of the ith row of the predecessor array.
i | Index of the row to get. |
Definition at line 453 of file path_finder.h.
Referenced by HF::Pathfinding::GenerateDistanceAndPred(), and operator<<().
std::vector<float>* HF::Pathfinding::DistanceAndPredecessor::dist |
Definition at line 410 of file path_finder.h.
Referenced by DistanceAndPredecessor(), CalculateDistanceAndPredecessor(), and GetRowOfDist().
std::vector<int>* HF::Pathfinding::DistanceAndPredecessor::pred |
Definition at line 411 of file path_finder.h.
Referenced by DistanceAndPredecessor(), CalculateDistanceAndPredecessor(), and GetRowOfPred().
int HF::Pathfinding::DistanceAndPredecessor::size = 0 |
Number of rows and colums.
Definition at line 413 of file path_finder.h.
Referenced by DistanceAndPredecessor(), GetRowOfDist(), GetRowOfPred(), and operator<<().