vrpRouting
0.3
arrays_input.h
Go to the documentation of this file.
1
/*PGR-GNU*****************************************************************
2
File: arrays_input.h
3
4
Copyright (c) 2015 Celia Virginia Vergara Castillo
5
[email protected]
6
7
------
8
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
23
********************************************************************PGR-GNU*/
24
25
#ifndef INCLUDE_C_COMMON_ARRAYS_INPUT_H_
26
#define INCLUDE_C_COMMON_ARRAYS_INPUT_H_
27
#pragma once
28
29
30
#include <stdint.h>
31
#include <postgres.h>
32
#include <utils/array.h>
33
35
int64_t*
pgr_get_bigIntArray
(
size_t
*arrlen, ArrayType *input);
36
38
int64_t*
pgr_get_bigIntArray_allowEmpty
(
size_t
*arrlen, ArrayType *input);
39
41
uint32_t*
pgr_get_positiveIntArray_allowEmpty
(
size_t
*arrlen, ArrayType *input);
42
43
#endif // INCLUDE_C_COMMON_ARRAYS_INPUT_H_
pgr_get_bigIntArray_allowEmpty
int64_t * pgr_get_bigIntArray_allowEmpty(size_t *arrlen, ArrayType *input)
Allows the input array to be empty.
Definition:
arrays_input.c:223
pgr_get_bigIntArray
int64_t * pgr_get_bigIntArray(size_t *arrlen, ArrayType *input)
enforces the input array to be NOT empty
Definition:
arrays_input.c:217
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:
arrays_input.c:228
include
c_common
arrays_input.h
Generated on Tue Nov 15 2022 03:49:51 for vrpRouting by
1.8.17