PGROUTING  3.2
withPoints_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: many_to_many_withPoints_driver.h
3 
4 Copyright (c) 2015 pgRouting developers
6 
7 Function's developer:
8 Copyright (c) 2015 Celia Virginia Vergara Castillo
9 Mail:
10 
11 ------
12 
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 
27  ********************************************************************PGR-GNU*/
28 
29 #ifndef INCLUDE_DRIVERS_WITHPOINTS_WITHPOINTS_DRIVER_H_
30 #define INCLUDE_DRIVERS_WITHPOINTS_WITHPOINTS_DRIVER_H_
31 #pragma once
32 
33 /* for size-t */
34 #ifdef __cplusplus
35 # include <cstddef>
36 #else
37 # include <stddef.h>
38 #endif
39 
41 #include "c_types/pgr_edge_t.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 // CREATE OR REPLACE FUNCTION pgr_withPoint(
50 // edges_sql TEXT,
51 // points_sql TEXT,
52 // start_pid ANYARRAY,
53 // end_pid BIGINT,
54 // directed BOOLEAN DEFAULT true,
55  void do_pgr_withPoints(
56  pgr_edge_t *edges,
57  size_t total_edges,
58 
59  Point_on_edge_t *points,
60  size_t total_points,
61 
62  pgr_edge_t *edges_of_points,
63  size_t total_edges_of_points,
64 
65  pgr_combination_t *combinations,
66  size_t total_combinations,
67 
68  int64_t *start_pidsArr,
69  size_t size_start_pidsArr,
70 
71  int64_t *end_pidsArr,
72  size_t size_end_pidsArr,
73 
74 
75  char driving_side,
76  bool details,
77  bool directed,
78  bool only_cost,
79  bool normal,
80 
81  General_path_element_t **return_tuples,
82  size_t *return_count,
83  char** log_msg,
84  char** notice_msg,
85  char** err_msg);
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif // INCLUDE_DRIVERS_WITHPOINTS_WITHPOINTS_DRIVER_H_
point_on_edge_t.h
pgr_edge_t
Definition: pgr_edge_t.h:37
pgr_combination_t.h
pgr_combination_t
Definition: pgr_combination_t.h:43
Point_on_edge_t
Definition: point_on_edge_t.h:37
General_path_element_t
Definition: general_path_element_t.h:37
general_path_element_t.h
do_pgr_withPoints
void do_pgr_withPoints(pgr_edge_t *edges, size_t total_edges, Point_on_edge_t *points, size_t total_points, pgr_edge_t *edges_of_points, size_t total_edges_of_points, pgr_combination_t *combinations, size_t total_combinations, int64_t *start_pidsArr, size_t size_start_pidsArr, int64_t *end_pidsArr, size_t size_end_pidsArr, char driving_side, bool details, bool directed, bool only_cost, bool normal, General_path_element_t **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg)
Definition: withPoints_driver.cpp:93
pgr_edge_t.h