DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
AStarShortestPath Class Reference

#include <AStarShortestPath.h>

Inheritance diagram for AStarShortestPath:
ShortestPathAlgorithm

Classes

struct  Impl
 

Public Member Functions

 AStarShortestPath (DisplaceModel *model)
 
virtual ~AStarShortestPath () noexcept
 
void create (std::shared_ptr< NodeData > node, QString path, bool simplify, const QList< std::shared_ptr< NodeData > > &relevantNodes) override
 
void saveRelevantNodes (const QList< std::shared_ptr< NodeData > > &, std::function< void(types::NodeId, types::NodeId, double)> writer) override
 
- Public Member Functions inherited from ShortestPathAlgorithm
virtual ~ShortestPathAlgorithm () noexcept=default
 

Constructor & Destructor Documentation

◆ AStarShortestPath()

AStarShortestPath::AStarShortestPath ( DisplaceModel model)
explicit

◆ ~AStarShortestPath()

AStarShortestPath::~AStarShortestPath ( )
virtualdefaultnoexcept

Member Function Documentation

◆ create()

void AStarShortestPath::create ( std::shared_ptr< NodeData node,
QString  path,
bool  simplify,
const QList< std::shared_ptr< NodeData > > &  relevantNodes 
)
overridevirtual

Implements ShortestPathAlgorithm.

◆ saveRelevantNodes()

void AStarShortestPath::saveRelevantNodes ( const QList< std::shared_ptr< NodeData > > &  relevantNodes,
std::function< void(types::NodeId, types::NodeId, double)>  writer 
)
overridevirtual

Implements ShortestPathAlgorithm.


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