PGROUTING
3.2
|
Handles actual calling of function in the pgr_sequentialVertexColoring.hpp
file.
More...
#include "drivers/coloring/sequentialVertexColoring_driver.h"
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include "cpp_common/pgr_alloc.hpp"
#include "cpp_common/pgr_assert.h"
#include "coloring/pgr_sequentialVertexColoring.hpp"
Go to the source code of this file.
Functions | |
void | do_pgr_sequentialVertexColoring (pgr_edge_t *data_edges, size_t total_edges, pgr_vertex_color_rt **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg) |
Performs exception handling and converts the results to postgres. More... | |
template<class G > | |
std::vector< pgr_vertex_color_rt > | pgr_sequentialVertexColoring (G &graph) |
Calls the main function defined in the C++ Header file. More... | |
Handles actual calling of function in the pgr_sequentialVertexColoring.hpp
file.
Definition in file sequentialVertexColoring_driver.cpp.
void do_pgr_sequentialVertexColoring | ( | pgr_edge_t * | data_edges, |
size_t | total_edges, | ||
pgr_vertex_color_rt ** | return_tuples, | ||
size_t * | return_count, | ||
char ** | log_msg, | ||
char ** | notice_msg, | ||
char ** | err_msg | ||
) |
Performs exception handling and converts the results to postgres.
It builds the undirected graph using the data_edges
variable. Then, it passes the required variables to the template function pgr_sequentialVertexColoring
which calls the main function defined in the C++ Header file. It also does exception handling.
data_edges | the set of edges from the SQL query |
total_edges | the total number of edges in the SQL query |
return_tuples | the rows in the result |
return_count | the count of rows in the result |
log_msg | stores the log message |
notice_msg | stores the notice message |
err_msg | stores the error message |
Definition at line 93 of file sequentialVertexColoring_driver.cpp.
References pgrouting::graph::Pgr_base_graph< G, T_V, T_E >::insert_edges(), pgassert, pgr_alloc(), pgr_free(), pgr_msg(), pgr_sequentialVertexColoring(), UNDIRECTED, and AssertFailedException::what().
Referenced by process().
std::vector< pgr_vertex_color_rt > pgr_sequentialVertexColoring | ( | G & | graph | ) |
Calls the main function defined in the C++ Header file.
graph | the graph containing the edges |
log | stores the log message |
Definition at line 62 of file sequentialVertexColoring_driver.cpp.
References pgrouting::functions::Pgr_sequentialVertexColoring< G >::sequentialVertexColoring().
Referenced by do_pgr_sequentialVertexColoring().