trsp_driver.h 1.83 KB
Newer Older
1
/*PGR-GNU*****************************************************************
2
File: trsp_driver.h
3

4
Shortest path with turn restrictions algorithm for PostgreSQL
5

6 7
Copyright (c) 2017 pgRouting developers
Copyright (c) 2011 Stephen Woodbridge
8

9
-------------
10

11 12 13 14
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
15

16 17
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 20 21 22 23 24
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

25
********************************************************************PGR-GNU*/
26

27 28
#ifndef INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_
#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"
34 35
#include "c_types/general_path_element_t.h"

36 37 38
#ifdef __cplusplus
extern "C" {
#endif
39

40 41 42 43 44 45 46 47 48 49 50 51 52
    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,

53
            bool directed,
54

55 56
            General_path_element_t **return_tuples,
            size_t *return_count,
57 58 59 60

            char **log_msg,
            char **notice_msg,
            char **err_msg);
61 62 63 64 65 66


#ifdef __cplusplus
}
#endif

67
#endif  // INCLUDE_DRIVERS_TRSP_TRSP_DRIVER_H_