Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /trunk/src/functions.h
Parent Directory
|
Revision Log
Revision 63 -
(hide annotations)
(download)
(as text)
Wed Jan 21 19:35:52 2009 UTC (16 years, 1 month ago) by amb
File MIME type: text/x-chdr
File size: 2209 byte(s)
Wed Jan 21 19:35:52 2009 UTC (16 years, 1 month ago) by amb
File MIME type: text/x-chdr
File size: 2209 byte(s)
Calculate way speeds at routing time.
1 | amb | 2 | /*************************************** |
2 | amb | 63 | $Header: /home/amb/CVS/routino/src/functions.h,v 1.14 2009-01-21 19:35:52 amb Exp $ |
3 | amb | 2 | |
4 | Header file for function prototypes | ||
5 | ******************/ /****************** | ||
6 | Written by Andrew M. Bishop | ||
7 | |||
8 | amb | 4 | This file Copyright 2008,2009 Andrew M. Bishop |
9 | amb | 2 | It may be distributed under the GNU Public License, version 2, or |
10 | any higher version. See section COPYING of the GNU Public license | ||
11 | for conditions under which this file may be redistributed. | ||
12 | ***************************************/ | ||
13 | |||
14 | |||
15 | #ifndef FUNCTIONS_H | ||
16 | #define FUNCTIONS_H /*+ To stop multiple inclusions. +*/ | ||
17 | |||
18 | #include <stdio.h> | ||
19 | |||
20 | amb | 26 | #include "nodes.h" |
21 | #include "ways.h" | ||
22 | #include "segments.h" | ||
23 | amb | 31 | #include "results.h" |
24 | amb | 2 | |
25 | amb | 26 | |
26 | amb | 2 | /* In osmparser.c */ |
27 | |||
28 | amb | 25 | int ParseXML(FILE *file,NodesMem *OSMNodes,SegmentsMem *OSMSegments,WaysMem *OSMWays); |
29 | amb | 2 | |
30 | |||
31 | /* In files.c */ | ||
32 | |||
33 | void *MapFile(const char *filename); | ||
34 | |||
35 | void UnMapFile(void *address); | ||
36 | |||
37 | int WriteFile(const char *filename,void *address,size_t length); | ||
38 | |||
39 | |||
40 | /* In optimiser.c */ | ||
41 | |||
42 | amb | 54 | Results *FindRoute(Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,wayallow_t transport); |
43 | amb | 58 | Results *FindRoute3(Nodes *supernodes,Segments *supersegments,Ways *superways,node_t start,node_t finish,Results *begin,Results *end,wayallow_t transport); |
44 | amb | 2 | |
45 | amb | 63 | void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,node_t start,node_t finish,wayallow_t transport); |
46 | amb | 25 | |
47 | amb | 54 | Results *FindRoutes(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,wayallow_t transport); |
48 | Results *FindReverseRoutes(Nodes *nodes,Segments *segments,Ways *ways,Nodes *start,node_t finish,wayallow_t transport); | ||
49 | amb | 31 | |
50 | amb | 55 | Results *CombineRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,wayallow_t transport); |
51 | amb | 31 | |
52 | amb | 58 | Results *FindRoutesWay(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,Way *match,int iteration); |
53 | amb | 31 | |
54 | amb | 54 | |
55 | /* Functions in supersegments.c */ | ||
56 | |||
57 | NodesMem *ChooseSuperNodes(Nodes *nodes,Segments *segments,Ways *ways); | ||
58 | |||
59 | amb | 58 | SegmentsMem *CreateSuperSegments(Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,int iteration); |
60 | amb | 54 | |
61 | WaysMem *CreateSuperWays(Ways *ways,SegmentsMem *supersegments); | ||
62 | |||
63 | |||
64 | amb | 2 | #endif /* FUNCTIONS_H */ |
Properties
Name | Value |
---|---|
cvs:description | Function prototypes. |