PGROUTING  3.2
routes_t.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: pgr_types.h
3 
4 Copyright (c) 2015 Celia Virginia Vergara Castillo
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23  ********************************************************************PGR-GNU*/
26 #ifndef INCLUDE_C_TYPES_ROUTES_T_H_
27 #define INCLUDE_C_TYPES_ROUTES_T_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  int route_id;
39  int path_id;
40  int path_seq;
41  int64_t start_vid;
42  int64_t end_vid;
43  int64_t node;
44  int64_t edge;
45  double cost;
46  double agg_cost;
48 } Routes_t;
49 
50 #endif // INCLUDE_C_TYPES_ROUTES_T_H_
Routes_t::edge
int64_t edge
Definition: routes_t.h:44
Routes_t::route_id
int route_id
Definition: routes_t.h:38
Routes_t::route_agg_cost
double route_agg_cost
Definition: routes_t.h:47
Routes_t::end_vid
int64_t end_vid
Definition: routes_t.h:42
Routes_t
Definition: routes_t.h:37
Routes_t::cost
double cost
Definition: routes_t.h:45
Routes_t::node
int64_t node
Definition: routes_t.h:43
Routes_t::path_seq
int path_seq
Definition: routes_t.h:40
Routes_t::start_vid
int64_t start_vid
Definition: routes_t.h:41
Routes_t::path_id
int path_id
Definition: routes_t.h:39
Routes_t::agg_cost
double agg_cost
Definition: routes_t.h:46