Go to the source code of this file.
◆ do_pgr_lineGraphFull()
void do_pgr_lineGraphFull |
( |
pgr_edge_t * |
data_edges, |
|
|
size_t |
total_edges, |
|
|
Line_graph_full_rt ** |
return_tuples, |
|
|
size_t * |
return_count, |
|
|
char ** |
log_msg, |
|
|
char ** |
notice_msg, |
|
|
char ** |
err_msg |
|
) |
| |
Definition at line 62 of file lineGraphFull_driver.cpp.
70 std::ostringstream log;
71 std::ostringstream err;
72 std::ostringstream notice;
84 digraph.insert_edges_neg(data_edges, total_edges);
87 log << digraph <<
"\n";
94 std::vector< Line_graph_full_rt > line_graph_edges;
95 line_graph_edges = line.get_postgres_results_directed();
97 auto count = line_graph_edges.size();
100 (*return_tuples) = NULL;
104 "No paths found between start_vid and end_vid vertices";
112 (*return_count) = sequence;
115 log << line.log.str().c_str() <<
"\n\n\n";
119 *log_msg = log.str().empty()?
122 *notice_msg = notice.str().empty()?
126 (*return_tuples) =
pgr_free(*return_tuples);
128 err << except.
what();
129 *err_msg =
pgr_msg(err.str().c_str());
130 *log_msg =
pgr_msg(log.str().c_str());
131 }
catch (std::exception &except) {
132 (*return_tuples) =
pgr_free(*return_tuples);
134 err << except.what();
135 *err_msg =
pgr_msg(err.str().c_str());
136 *log_msg =
pgr_msg(log.str().c_str());
138 (*return_tuples) =
pgr_free(*return_tuples);
140 err <<
"Caught unknown exception!";
141 *err_msg =
pgr_msg(err.str().c_str());
142 *log_msg =
pgr_msg(log.str().c_str());
References DIRECTED, get_turn_penalty_postgres_result(), pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::insert_edges_neg(), pgassert, pgr_free(), pgr_msg(), and AssertFailedException::what().
Referenced by process().