PGROUTING
3.2
|
#include "drivers/astar/astar_driver.h"
#include <sstream>
#include <deque>
#include <algorithm>
#include <vector>
#include "astar/pgr_astar.hpp"
#include "cpp_common/pgr_alloc.hpp"
#include "cpp_common/pgr_assert.h"
Go to the source code of this file.
Functions | |
void | do_pgr_astarManyToMany (Pgr_edge_xy_t *edges, size_t total_edges, pgr_combination_t *combinations, size_t total_combinations, int64_t *start_vidsArr, size_t size_start_vidsArr, int64_t *end_vidsArr, size_t size_end_vidsArr, bool directed, int heuristic, double factor, double epsilon, bool only_cost, bool normal, General_path_element_t **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg) |
template<class G > | |
std::deque< Path > | pgr_astar (G &graph, std::vector< pgr_combination_t > &combinations, std::vector< int64_t > sources, std::vector< int64_t > targets, int heuristic, double factor, double epsilon, bool only_cost, bool normal) |
void do_pgr_astarManyToMany | ( | Pgr_edge_xy_t * | edges, |
size_t | total_edges, | ||
pgr_combination_t * | combinations, | ||
size_t | total_combinations, | ||
int64_t * | start_vidsArr, | ||
size_t | size_start_vidsArr, | ||
int64_t * | end_vidsArr, | ||
size_t | size_end_vidsArr, | ||
bool | directed, | ||
int | heuristic, | ||
double | factor, | ||
double | epsilon, | ||
bool | only_cost, | ||
bool | normal, | ||
General_path_element_t ** | return_tuples, | ||
size_t * | return_count, | ||
char ** | log_msg, | ||
char ** | notice_msg, | ||
char ** | err_msg | ||
) |
Definition at line 86 of file astar_driver.cpp.
References collapse_paths(), count_tuples(), DIRECTED, pgrouting::extract_vertices(), pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::insert_edges(), pgassert, pgr_alloc(), pgr_astar(), pgr_free(), pgr_msg(), UNDIRECTED, and AssertFailedException::what().
Referenced by process().
std::deque<Path> pgr_astar | ( | G & | graph, |
std::vector< pgr_combination_t > & | combinations, | ||
std::vector< int64_t > | sources, | ||
std::vector< int64_t > | targets, | ||
int | heuristic, | ||
double | factor, | ||
double | epsilon, | ||
bool | only_cost, | ||
bool | normal | ||
) |
Definition at line 46 of file astar_driver.cpp.
References pgrouting::algorithms::Pgr_astar< G >::astar(), and Path::reverse().
Referenced by do_pgr_astarManyToMany().