vrpRouting  0.3
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...
 
uint32_t * pgr_get_positiveIntArray_allowEmpty (size_t *arrlen, ArrayType *input)
 Allows the input array, with non-negative elements 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

Definition at line 217 of file arrays_input.c.

217  {
218  return pgr_get_bigIntArr(input, arrlen, false);
219 }

References pgr_get_bigIntArr().

Referenced by spi_getBigIntArr().

◆ pgr_get_bigIntArray_allowEmpty()

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

Allows the input array to be empty.

Definition at line 223 of file arrays_input.c.

223  {
224  return pgr_get_bigIntArr(input, arrlen, true);
225 }

References pgr_get_bigIntArr().

Referenced by spi_getBigIntArr_allowEmpty().

◆ pgr_get_positiveIntArray_allowEmpty()

uint32_t* pgr_get_positiveIntArray_allowEmpty ( size_t *  arrlen,
ArrayType *  input 
)

Allows the input array, with non-negative elements to be empty.

Definition at line 228 of file arrays_input.c.

228  {
229  return pgr_get_positiveIntArr(input, arrlen, true);
230 }

References pgr_get_positiveIntArr().

Referenced by spi_getPositiveIntArr_allowEmpty().

pgr_get_bigIntArr
static int64_t * pgr_get_bigIntArr(ArrayType *v, size_t *arrlen, bool allow_empty)
Definition: arrays_input.c:42
pgr_get_positiveIntArr
static uint32_t * pgr_get_positiveIntArr(ArrayType *v, size_t *arrlen, bool allow_empty)
Definition: arrays_input.c:130