![]() |
vrpRouting
0.3
|
#include "c_common/matrixRows_input.h"
#include "c_types/column_info_t.h"
#include "c_types/matrix_cell_t.h"
#include "c_common/get_check_data.h"
Go to the source code of this file.
Functions | |
static void | fetch_plain (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info[3], Matrix_cell_t *row) |
static void | fetch_timestamps (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info[3], Matrix_cell_t *row) |
void | get_matrixRows (char *sql, Matrix_cell_t **rows, size_t *total_rows) |
Get the travel time matrix. More... | |
static void | get_matrixRows_general (char *sql, Column_info_t *info, const int kind, Matrix_cell_t **rows, size_t *total_rows) |
bigint start_vid, bigint end_vid, float agg_cost, More... | |
void | get_matrixRows_plain (char *sql, Matrix_cell_t **rows, size_t *total_rows) |
Get the travel time matrix with numerical types. More... | |
|
static |
Definition at line 62 of file matrixRows_input.c.
References Matrix_cell_t::cost, Matrix_cell_t::from_vid, get_Id(), get_PositiveTInterval_plain(), and Matrix_cell_t::to_vid.
Referenced by get_matrixRows_general().
|
static |
Definition at line 73 of file matrixRows_input.c.
References Matrix_cell_t::cost, Matrix_cell_t::from_vid, get_Id(), get_PositiveTInterval(), and Matrix_cell_t::to_vid.
Referenced by get_matrixRows_general().
void get_matrixRows | ( | char * | sql, |
Matrix_cell_t ** | rows, | ||
size_t * | total_rows | ||
) |
Get the travel time matrix.
[in] | sql | SQL query that has the following columns: start_vid, end_vid, agg_cost |
[out] | rows | C Container that holds all the matrix rows |
[out] | total_rows | Total rows recieved |
Definition at line 176 of file matrixRows_input.c.
References ANY_INTEGER, Column_info_t::colNumber, Column_info_t::eType, get_matrixRows_general(), INTERVAL, Column_info_t::name, Column_info_t::strict, and Column_info_t::type.
Referenced by process().
|
static |
bigint start_vid, bigint end_vid, float agg_cost,
Definition at line 90 of file matrixRows_input.c.
References fetch_plain(), fetch_timestamps(), PGR_DBG, pgr_fetch_column_info(), pgr_SPI_cursor_open(), pgr_SPI_prepare(), and time_msg().
Referenced by get_matrixRows(), and get_matrixRows_plain().
void get_matrixRows_plain | ( | char * | sql, |
Matrix_cell_t ** | rows, | ||
size_t * | total_rows | ||
) |
Get the travel time matrix with numerical types.
[in] | sql | SQL query that has the following columns: start_vid, end_vid, agg_cost |
[out] | rows | C Container that holds all the matrix rows |
[out] | total_rows | Total rows recieved |
Definition at line 203 of file matrixRows_input.c.
References ANY_INTEGER, ANY_NUMERICAL, Column_info_t::colNumber, Column_info_t::eType, get_matrixRows_general(), Column_info_t::name, Column_info_t::strict, and Column_info_t::type.
Referenced by process().