PGROUTING
3.2
|
#include "pgr_astar.hpp"
Classes | |
class | astar_many_goals_visitor |
class for stopping when all targets are found More... | |
class | astar_one_goal_visitor |
visitor that terminates when we find the goal More... | |
class | distance_heuristic |
struct | found_goals |
Public Types | |
typedef G::B_G | B_G |
typedef G::V | V |
Public Member Functions | |
void | clear () |
Astar | |
Path | astar (G &graph, int64_t start_vertex, int64_t end_vertex, int heuristic, double factor, double epsilon, bool only_cost) |
one to one astar 1 to 1 More... | |
std::deque< Path > | astar (G &graph, int64_t start_vertex, std::vector< int64_t > end_vertex, int heuristic, double factor, double epsilon, bool only_cost) |
astar 1 to many More... | |
std::deque< Path > | astar (G &graph, std::vector< int64_t > start_vertex, std::vector< int64_t > end_vertex, int heuristic, double factor, double epsilon, bool only_cost) |
std::deque< Path > | astar (G &graph, const std::vector< pgr_combination_t > &combinations, int heuristic, double factor, double epsilon, bool only_cost) |
members; | |
std::vector< V > | predecessors |
std::vector< double > | distances |
std::deque< V > | nodesInDistance |
bool | astar_1_to_1 (G &graph, V source, V target, int heuristic, double factor, double epsilon) |
Call to Astar 1 source to 1 target. More... | |
bool | astar_1_to_many (G &graph, V source, const std::vector< V > &targets, int heuristic, double factor, double epsilon) |
Call to astar 1 source to many targets. More... | |
std::deque< Path > | get_paths (const G &graph, V source, const std::vector< V > &targets, bool only_cost) const |
Definition at line 54 of file pgr_astar.hpp.
typedef G::B_G pgrouting::algorithms::Pgr_astar< G >::B_G |
Definition at line 57 of file pgr_astar.hpp.
typedef G::V pgrouting::algorithms::Pgr_astar< G >::V |
Definition at line 56 of file pgr_astar.hpp.
|
inline |
Definition at line 170 of file pgr_astar.hpp.
References pgrouting::algorithms::Pgr_astar< G >::astar().
|
inline |
one to one astar 1 to 1
Definition at line 69 of file pgr_astar.hpp.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar(), and pgr_astar().
|
inline |
astar 1 to many
Definition at line 102 of file pgr_astar.hpp.
References pgrouting::algorithms::Pgr_astar< G >::astar_1_to_many(), pgrouting::algorithms::Pgr_astar< G >::clear(), pgrouting::algorithms::Pgr_astar< G >::distances, pgrouting::algorithms::Pgr_astar< G >::get_paths(), and pgrouting::algorithms::Pgr_astar< G >::predecessors.
|
inline |
Definition at line 143 of file pgr_astar.hpp.
References pgrouting::algorithms::Pgr_astar< G >::astar().
|
inlineprivate |
Call to Astar 1 source to 1 target.
Definition at line 324 of file pgr_astar.hpp.
References pgrouting::Basic_edge::cost, pgrouting::algorithms::Pgr_astar< G >::distances, and pgrouting::algorithms::Pgr_astar< G >::predecessors.
|
inlineprivate |
Call to astar 1 source to many targets.
Definition at line 353 of file pgr_astar.hpp.
References pgrouting::Basic_edge::cost, pgrouting::algorithms::Pgr_astar< G >::distances, and pgrouting::algorithms::Pgr_astar< G >::predecessors.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar().
|
inline |
Definition at line 60 of file pgr_astar.hpp.
References pgrouting::algorithms::Pgr_astar< G >::distances, and pgrouting::algorithms::Pgr_astar< G >::predecessors.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar().
|
inlineprivate |
Definition at line 386 of file pgr_astar.hpp.
References pgrouting::algorithms::Pgr_astar< G >::distances, and pgrouting::algorithms::Pgr_astar< G >::predecessors.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar().
|
private |
Definition at line 211 of file pgr_astar.hpp.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar(), pgrouting::algorithms::Pgr_astar< G >::astar_1_to_1(), pgrouting::algorithms::Pgr_astar< G >::astar_1_to_many(), pgrouting::algorithms::Pgr_astar< G >::clear(), and pgrouting::algorithms::Pgr_astar< G >::get_paths().
|
private |
Definition at line 212 of file pgr_astar.hpp.
|
private |
Definition at line 210 of file pgr_astar.hpp.
Referenced by pgrouting::algorithms::Pgr_astar< G >::astar(), pgrouting::algorithms::Pgr_astar< G >::astar_1_to_1(), pgrouting::algorithms::Pgr_astar< G >::astar_1_to_many(), pgrouting::algorithms::Pgr_astar< G >::clear(), and pgrouting::algorithms::Pgr_astar< G >::get_paths().