PGROUTING  2.6-dev
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 #pragma GCC diagnostic ignored "-pedantic"
45 #endif
46 
47 #include <postgres.h>
48 
49 #ifdef __GNUC__
50 #pragma GCC diagnostic pop
51 #endif
52 
53 // For NULL & size_t
54 #include <stdlib.h>
55 
56 
57 #endif // __cplusplus
58 
59 // For int64_t etc
60 #include <stdint.h>
61 
62 
63 typedef struct {
64  int64_t id;
65  int64_t source;
66  int64_t target;
67  double cost;
68  double reverse_cost;
70 
71 #endif // INCLUDE_C_TYPES_LINE_GRAPH_RT_H_
int64_t source
Definition: line_graph_rt.h:65
double reverse_cost
Definition: line_graph_rt.h:68
int64_t target
Definition: line_graph_rt.h:66