PGROUTING
3.2
|
#include "c_common/arrays_input.h"
#include <assert.h>
#include <utils/lsyscache.h>
#include <catalog/pg_type.h>
#include "c_common/time_msg.h"
#include "c_common/debug_macro.h"
Go to the source code of this file.
Functions | |
static int64_t * | pgr_get_bigIntArr (ArrayType *v, size_t *arrlen, bool allow_empty) |
Function for array input. More... | |
int64_t * | pgr_get_bigIntArray (size_t *arrlen, ArrayType *input) |
Enforces the input array to be NOT empty. More... | |
int64_t * | pgr_get_bigIntArray_allowEmpty (size_t *arrlen, ArrayType *input) |
Allows the input array to be empty. More... | |
|
static |
Function for array input.
This function generates the array inputs according to their type received through ArrayType *v parameter and store them in c_array. It can be empty also if received allow_empty true. The cases of failure are:-
All these failures are represented as error through elog.
[in] | v | The type of element to be processed. |
[out] | arrlen | The length of the array (To be determined in this function). |
[in] | allow_empty | Bool type parameter that tells us whether to consider empty array or not. |
Definition at line 54 of file arrays_input.c.
References PGR_DBG, and time_msg().
Referenced by pgr_get_bigIntArray(), and pgr_get_bigIntArray_allowEmpty().
int64_t* pgr_get_bigIntArray | ( | size_t * | arrlen, |
ArrayType * | input | ||
) |
Enforces the input array to be NOT empty.
[out] | arrlen | Length of the array |
[in] | input | Input type of the array |
Definition at line 146 of file arrays_input.c.
References pgr_get_bigIntArr().
Referenced by compute_trsp(), pgr_SPI_getBigIntArr(), and process().
int64_t* pgr_get_bigIntArray_allowEmpty | ( | size_t * | arrlen, |
ArrayType * | input | ||
) |
Allows the input array to be empty.
[out] | arrlen | Length of the array |
[in] | input | Input type of the array |
Definition at line 156 of file arrays_input.c.
References pgr_get_bigIntArr().
Referenced by process().