PGROUTING  3.2
trsp_types.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3 FILE: trsp_types.h
4 
5 Copyright (c) 2015 pgRouting developers
7 
8 ------
9 
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19 
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 
24  ********************************************************************PGR-GNU*/
25 
26 #ifndef INCLUDE_C_TYPES_TRSP_TYPES_H_
27 #define INCLUDE_C_TYPES_TRSP_TYPES_H_
28 #pragma once
29 
30 /* for int64_t */
31 #ifdef __cplusplus
32 # include <cstdint>
33 #else
34 # include <stdint.h>
35 #endif
36 
37 typedef struct {
38  int64_t id;
39  int64_t source;
40  int64_t target;
41  double cost;
42  double reverse_cost;
43 } edge_t;
44 
45 typedef struct restrict_struct {
46  int target_id;
47  double to_cost;
48  int via[5];
49 }
51 
52 typedef struct path_element {
53  int64_t vertex_id;
54  int64_t edge_id;
55  double cost;
57 
58 #endif // INCLUDE_C_TYPES_TRSP_TYPES_H_
edge_t::source
int64_t source
Definition: trsp_types.h:39
edge_t::target
int64_t target
Definition: trsp_types.h:40
path_element::cost
double cost
Definition: trsp_types.h:55
edge_t::reverse_cost
double reverse_cost
Definition: trsp_types.h:42
path_element
Definition: trsp.h:56
edge_t
struct edge edge_t
restrict_struct
Definition: trsp.h:49
restrict_struct::target_id
int target_id
Definition: trsp.h:50
edge_t::id
int64_t id
Definition: trsp_types.h:38
restrict_t
struct restrict_struct restrict_t
path_element_tt
struct path_element path_element_tt
path_element::vertex_id
int64_t vertex_id
Definition: trsp_types.h:53
path_element::edge_id
int64_t edge_id
Definition: trsp_types.h:54
restrict_struct::to_cost
double to_cost
Definition: trsp_types.h:47
restrict_struct::via
int via[5]
Definition: trsp.h:52
edge_t::cost
double cost
Definition: trsp_types.h:41