CSCI3081W Drone Delivery System
Public Member Functions | Protected Attributes | List of all members
routing::AStar Class Reference
Inheritance diagram for routing::AStar:
Inheritance graph
[legend]
Collaboration diagram for routing::AStar:
Collaboration graph
[legend]

Public Member Functions

 AStar (std::function< double(const GraphNode &, const GraphNode &)> h=[](const GraphNode &n1, const GraphNode &n2) { return n1.getPosition().dist(n2.getPosition());})
 
std::optional< std::vector< int > > getPath (const Graph &, int, int) const
 

Protected Attributes

std::function< double(const GraphNode &, const GraphNode &)> heuristic
 

The documentation for this class was generated from the following file: