PGROUTING
3.2
|
Connecting code with postgres. More...
#include <stdbool.h>
#include "c_common/postgres_connection.h"
#include "utils/array.h"
#include "c_common/debug_macro.h"
#include "c_common/e_report.h"
#include "c_common/time_msg.h"
#include "c_common/edges_input.h"
#include "c_common/arrays_input.h"
#include "c_common/combinations_input.h"
#include "drivers/max_flow/minCostMaxFlow_driver.h"
Go to the source code of this file.
Functions | |
PGDLLEXPORT Datum | _pgr_maxflowmincost (PG_FUNCTION_ARGS) |
postgres_connection.h More... | |
PG_FUNCTION_INFO_V1 (_pgr_maxflowmincost) | |
static void | process (char *edges_sql, char *combinations_sql, ArrayType *starts, ArrayType *ends, bool only_cost, pgr_flow_t **result_tuples, size_t *result_count) |
Connecting code with postgres.
This file is fully documented for understanding how the postgres connectinon works
TODO Remove unnecessary comments before submiting the function. some comments are in form of PGR_DBG message
Definition in file minCostMaxFlow.c.
PGDLLEXPORT Datum _pgr_maxflowmincost | ( | PG_FUNCTION_ARGS | ) |
Definition at line 178 of file minCostMaxFlow.c.
References pgr_flow_t::agg_cost, pgr_flow_t::cost, pgr_flow_t::edge, pgr_flow_t::flow, if(), PGR_DBG, process(), pgr_flow_t::residual_capacity, pgr_flow_t::source, and pgr_flow_t::target.
PG_FUNCTION_INFO_V1 | ( | _pgr_maxflowmincost | ) |
|
static |
Definition at line 73 of file minCostMaxFlow.c.
References do_pgr_minCostMaxFlow(), PGR_DBG, pgr_get_bigIntArray(), pgr_get_combinations(), pgr_get_costFlow_edges(), pgr_global_report(), pgr_SPI_connect(), pgr_SPI_finish(), and time_msg().
Referenced by _pgr_maxflowmincost().