PGROUTING  3.2
arrays_input.h File Reference
#include <stdint.h>
#include <postgres.h>
#include <utils/array.h>
Include dependency graph for arrays_input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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...
 

Function Documentation

◆ pgr_get_bigIntArray()

int64_t* pgr_get_bigIntArray ( size_t *  arrlen,
ArrayType *  input 
)

Enforces the input array to be NOT empty.

Parameters
[out]arrlenLength of the array
[in]inputInput type of the array
Returns
Returns the output of pgr_get_bitIntArray when allow_empty is set to false.

Definition at line 146 of file arrays_input.c.

146  {
147  return pgr_get_bigIntArr(input, arrlen, false);
148 }

References pgr_get_bigIntArr().

Referenced by compute_trsp(), pgr_SPI_getBigIntArr(), and process().

◆ pgr_get_bigIntArray_allowEmpty()

int64_t* pgr_get_bigIntArray_allowEmpty ( size_t *  arrlen,
ArrayType *  input 
)

Allows the input array to be empty.

Parameters
[out]arrlenLength of the array
[in]inputInput type of the array
Returns
Returns the output of pgr_get_bitIntArray when allow_empty is set to true.

Definition at line 156 of file arrays_input.c.

156  {
157  return pgr_get_bigIntArr(input, arrlen, true);
158 }

References pgr_get_bigIntArr().

Referenced by process().

pgr_get_bigIntArr
static int64_t * pgr_get_bigIntArr(ArrayType *v, size_t *arrlen, bool allow_empty)
Function for array input.
Definition: arrays_input.c:54