pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
testit.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <assert.h>

Go to the source code of this file.

Classes

struct  edge
 
struct  path_element
 

Typedefs

typedef int bool
 
typedef struct edge edge_t
 
typedef double float8
 
typedef struct path_element path_element_t
 

Functions

int boost_dijkstra (edge_t *edges, unsigned int count, int start_vertex, int end_vertex, bool directed, bool has_reverse_cost, path_element_t **path, int *path_count, char **err_msg)
 
int main (void)
 

Variables

static edge_t edges [23]
 

Typedef Documentation

typedef int bool

Definition at line 29 of file testit.c.

typedef struct edge edge_t
typedef double float8

Definition at line 28 of file testit.c.

typedef struct path_element path_element_t

Function Documentation

int boost_dijkstra ( edge_t edges,
unsigned int  count,
int  start_vertex,
int  end_vertex,
bool  directed,
bool  has_reverse_cost,
path_element_t **  path,
int *  path_count,
char **  err_msg 
)

Definition at line 68 of file boost_wrapper.cpp.

References Vertex::cost, pgr_edge_t::cost, pgr_edge_t::id, MAX_NODES, and pgr_edge_t::reverse_cost.

Referenced by main().

int main ( void  )

Variable Documentation

edge_t edges[23]
static
Initial value:
= {
{134034453,4401484,4401467,1491.35562366006,0.0},
{134034463,4401489,4401485,12.1046145920234,0.0},
{134034458,4401487,4401477,177.374061187772,0.0},
{134095663,4401465,4401476,2014.71852797927,0.0},
{134034459,4401485,4401487,201.968135582698,0.0},
{134095834,4401478,4401465,293.089423713387,0.0},
{134034461,4401488,4401489,418.687894948968,0.0},
{629678698,4415069,134860887,3776.78929640359,0.0},
{134034456,4401477,4401481,491.242305990214,0.0},
{134095832,4401482,4401487,76.1157555542275,0.0},
{134034465,4401490,4401489,1956.98967514724,0.0},
{134034454,4401483,4401486,1356.25190452873,0.0},
{134034462,4401487,4401478,17.2205341642897,0.0},
{134095833,4401477,4401478,2014.66722340654,0.0},
{134034455,4401485,4401483,53.5613132396201,0.0},
{134034467,4401488,4417647,2597.20106449741,0.0},
{134034452,4401483,4401467,350.071683838508,0.0},
{134034446,4401481,4401476,568.270689073724,0.0},
{134072383,4416226,4401482,322.141177736713,0.0},
{134034447,4401482,4401481,1522.8331095897,0.0},
{134034466,4401486,4401490,610.880612548267,0.0},
{134034468,4417647,4401486,507.803184036552,0.0},
{134034464,4401490,4401485,149.914370088613,0.0}
}

Definition at line 54 of file testit.c.