PGROUTING  2.6
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 
31 #include "c_types/trsp_types.h"
32 #include "c_types/pgr_edge_t.h"
33 #include "c_types/restriction_t.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40  void do_trsp(
41  pgr_edge_t *edges,
42  size_t edge_count,
43 
44  Restriction_t *restrictions,
45  size_t restrictions_size,
46 
47  int64_t *start_vidsArr,
48  size_t size_start_vidsArr,
49 
50  int64_t *end_vidsArr,
51  size_t size_end_vidsArr,
52 
53  bool directed,
54 
55  General_path_element_t **return_tuples,
56  size_t *return_count,
57 
58  char **log_msg,
59  char **notice_msg,
60  char **err_msg);
61 
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif // INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_
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