Deleter for the BoostGraph.
More...
#include <path_finder.h>
Deleter for the BoostGraph.
- Warning
- BoostGraphDeleter is only for use with std::unique_ptr. You do not want to pass the address of a stack-allocated BoostGraph to BoostGraphDeleter.operator()(). BoostGraphDeleter.operator() calls operator delete on the (BoostGraph *) argument, and passing the address of a stack-allocated BoostGraph for said argument will result in undefined behavior.
- See also
- CreateBoostGraph for BoostGraphDeleter's intended use.
Definition at line 53 of file path_finder.h.
◆ operator()()
void HF::Pathfinding::BoostGraphDeleter::operator() |
( |
BoostGraph * |
bg | ) |
const |
Delete a boost graph.
- Parameters
-
bg | Pointer to the boost graph to delete. |
std::vector<HF::SpatialStructures::Node> nodes = { node_0, node_1, node_2 };
std::vector<std::vector<int>> edges = { { 1, 2 }, { 2 }, { 1 } };
std::vector<std::vector<float>> distances = { { 1.0f, 2.5f }, { 54.0f }, { 39.0f } };
bg_deleter(&boostGraph);
A graph usable with the BoostGraphLibrary.
Deleter for the BoostGraph.
A Graph of nodes connected by edges that supports both integers and HF::SpatialStructures::Node.
A point in space with an ID.
Definition at line 325 of file path_finder.cpp.
The documentation for this struct was generated from the following files: