PGROUTING  2.5
line_graph_rt.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: line_graph_rt.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) 2017 Vidhan Jain
10 Mail: vidhanj1307@gmail.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*/
31 #ifndef INCLUDE_C_TYPES_LINE_GRAPH_RT_H_
32 #define INCLUDE_C_TYPES_LINE_GRAPH_RT_H_
33 #pragma once
34 
35 
36 #ifdef __cplusplus
37 
38 #include <cstddef>
39 
40 #else // __cplusplus
41 
42 // for bool
43 #ifdef __GNUC__
44 #if __GNUC__ > 5
45 #pragma GCC diagnostic ignored "-Wpedantic"
46 #else
47 #pragma GCC diagnostic ignored "-pedantic"
48 #endif
49 #endif
50 
51 #include <postgres.h>
52 
53 #ifdef __GNUC__
54 #pragma GCC diagnostic pop
55 #endif
56 
57 // For NULL & size_t
58 #include <stdlib.h>
59 
60 
61 #endif // __cplusplus
62 
63 // For int64_t etc
64 #include <stdint.h>
65 
66 
67 typedef struct {
68  int64_t id;
69  int64_t source;
70  int64_t target;
71  float cost;
72  float reverse_cost;
74 
75 #endif // INCLUDE_C_TYPES_LINE_GRAPH_RT_H_
int64_t source
Definition: line_graph_rt.h:69
float reverse_cost
Definition: line_graph_rt.h:72
int64_t target
Definition: line_graph_rt.h:70