PGROUTING  3.2
trsp_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: trsp_driver.h
3 
4 Shortest path with turn restrictions algorithm for PostgreSQL
5 
6 Copyright (c) 2017 pgRouting developers
7 Copyright (c) 2011 Stephen Woodbridge
8 
9 -------------
10 
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 
25  ********************************************************************PGR-GNU*/
26 
27 #ifndef INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_
28 #define INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_
29 
30 /* for size-t */
31 #ifdef __cplusplus
32 # include <cstddef>
33 #else
34 # include <stddef.h>
35 #endif
36 
37 #include "c_types/trsp_types.h"
38 #include "c_types/pgr_edge_t.h"
39 #include "c_types/restriction_t.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46  void do_trsp(
47  pgr_edge_t *edges,
48  size_t edge_count,
49 
50  Restriction_t *restrictions,
51  size_t restrictions_size,
52 
53  int64_t *start_vidsArr,
54  size_t size_start_vidsArr,
55 
56  int64_t *end_vidsArr,
57  size_t size_end_vidsArr,
58 
59  bool directed,
60 
61  General_path_element_t **return_tuples,
62  size_t *return_count,
63 
64  char **log_msg,
65  char **notice_msg,
66  char **err_msg);
67 
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif // INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_
pgr_edge_t
Definition: pgr_edge_t.h:37
trsp_types.h
do_trsp
void do_trsp(pgr_edge_t *edges, size_t edge_count, Restriction_t *restrictions, size_t restrictions_size, int64_t *start_vidsArr, size_t size_start_vidsArr, int64_t *end_vidsArr, size_t size_end_vidsArr, bool directed, General_path_element_t **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg)
Definition: trsp_driver.cpp:41
restriction_t.h
General_path_element_t
Definition: general_path_element_t.h:37
Restriction_t
Definition: restriction_t.h:37
general_path_element_t.h
pgr_edge_t.h