pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
many_to_one_dijkstra_driver.h
1 /*PGR-GNU*****************************************************************
2 File: many_to_one_dijkstra_driver.h
3 
4 Generated with Template by:
5 Copyright (c) 2015 pgRouting developers
6 Mail: project@pgrouting.org
7 
8 Function's developer:
9 Copyright (c) 2015 Celia Virginia Vergara Castillo
10 Mail: vicky_vergara@hotmail.com
11 
12 ------
13 
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18 
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23 
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 
28 ********************************************************************PGR-GNU*/
29 
30 #ifndef SRC_DIJKSTRA_SRC_MANY_TO_ONE_DIJKSTRA_DRIVER_H_
31 #define SRC_DIJKSTRA_SRC_MANY_TO_ONE_DIJKSTRA_DRIVER_H_
32 
33 #include "./../../common/src/pgr_types.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39  // CREATE OR REPLACE FUNCTION pgr_dijkstra(
40  // sql text,
41  // start_vids anyarray,
42  // end_vid BIGINT,
43  // directed BOOLEAN default true,
44  void
45  do_pgr_many_to_one_dijkstra(
46  pgr_edge_t *data_edges,
47  size_t total_tuples,
48  int64_t *start_vidsArr,
49  size_t size_start_vidsArr,
50  int64_t end_vid,
51  bool directed,
52  bool only_cost,
53  General_path_element_t **return_tuples,
54  size_t *return_count,
55  char ** err_msg);
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif // SRC_DIJKSTRA_SRC_MANY_TO_ONE_DIJKSTRA_DRIVER_H_