PGROUTING  2.5
trsp_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3  * Copyright (c) 2011 Stephen Woodbridge
4 
5 ------
6 
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 
21 ********************************************************************PGR-GNU*/
22 
23 #ifndef SRC_TRSP_SRC_TRSP_DRIVER_H_
24 #define SRC_TRSP_SRC_TRSP_DRIVER_H_
25 
26 #define MAX_RULE_LENGTH 5
27 
28 #include "c_types/pgr_types.h"
29 
32 
33 #ifdef __cplusplus
34 extern "C" {
35  #endif
36  int trsp_node_wrapper (
37  edge_t *edges, size_t edge_count,
38  restrict_t *restricts, size_t restrict_count,
39  int64_t start_vertex,
40  int64_t end_vertex,
41  bool directed,
42  bool has_reverse_cost,
43  path_element_t **path, size_t *path_count,
44  char **err_msg
45  );
46 
47  int trsp_edge_wrapper (
48  edge_t *edges, size_t edge_count,
49  restrict_t *restricts, size_t restrict_count,
50  int64_t start_edge,
51  double start_pos,
52  int64_t end_edge,
53  double end_pos,
54  bool directed,
55  bool has_reverse_cost,
56  path_element_t **path, size_t *path_count,
57  char **err_msg
58  );
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif // SRC_TRSP_SRC_TRSP_DRIVER_H_
pgr_edge_t edge_t
Definition: trsp_driver.h:30
static edge_t edges[22573]
Definition: trsp.h:31
Restrict_t restrict_t
Definition: trsp_driver.h:31
int trsp_node_wrapper(edge_t *edges, size_t edge_count, restrict_t *restricts, size_t restrict_count, int64_t start_vertex, int64_t end_vertex, bool directed, bool has_reverse_cost, path_element_t **path, size_t *path_count, char **err_msg)
Definition: trsp_driver.cpp:34
int trsp_edge_wrapper(edge_t *edges, size_t edge_count, restrict_t *restricts, size_t restrict_count, int64_t start_edge, double start_pos, int64_t end_edge, double end_pos, bool directed, bool has_reverse_cost, path_element_t **path, size_t *path_count, char **err_msg)
Definition: trsp_driver.cpp:84