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
bdastar.c File Reference
#include "postgres.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "catalog/pg_type.h"
#include <stdio.h>
#include <stdlib.h>
#include <search.h>
#include "../../common/src/pgr_types.h"
#include "../../common/src/postgres_connection.h"
#include "./bdastar_driver.h"
#include "../../common/src/debug_macro.h"

Go to the source code of this file.

Classes

struct  edge_astar_columns
 

Macros

#define TUPLIMIT   1000
 

Typedefs

typedef struct edge_astar_columns edge_astar_columns_t
 

Functions

PGDLLEXPORT Datum bidir_astar_shortest_path (PG_FUNCTION_ARGS)
 
static int compute_shortest_path_astar (char *sql, int source_vertex_id, int target_vertex_id, bool directed, bool has_reverse_cost, path_element_t **path, size_t *path_count)
 
static void fetch_edge_astar (HeapTuple *tuple, TupleDesc *tupdesc, edge_astar_columns_t *edge_columns, edge_astar_t *target_edge)
 
static int fetch_edge_astar_columns (SPITupleTable *tuptable, edge_astar_columns_t *edge_columns, bool has_reverse_cost)
 
 PG_FUNCTION_INFO_V1 (bidir_astar_shortest_path)
 

Macro Definition Documentation

#define TUPLIMIT   1000

Definition at line 52 of file bdastar.c.

Referenced by compute_shortest_path_astar().

Typedef Documentation

Function Documentation

PGDLLEXPORT Datum bidir_astar_shortest_path ( PG_FUNCTION_ARGS  )

Definition at line 339 of file bdastar.c.

References compute_shortest_path_astar(), path, path_count, PGR_DBG, and pgr_text2char().

static int compute_shortest_path_astar ( char *  sql,
int  source_vertex_id,
int  target_vertex_id,
bool  directed,
bool  has_reverse_cost,
path_element_t **  path,
size_t *  path_count 
)
static
static int fetch_edge_astar_columns ( SPITupleTable *  tuptable,
edge_astar_columns_t edge_columns,
bool  has_reverse_cost 
)
static
PG_FUNCTION_INFO_V1 ( bidir_astar_shortest_path  )