PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
contractGraph_driver.cpp File Reference
#include "./contractGraph_driver.h"
#include <string.h>
#include <sstream>
#include <deque>
#include <vector>
#include "./pgr_contractionGraph.hpp"
#include "./pgr_contract.hpp"
#include "./../../common/src/pgr_alloc.hpp"
#include "./../../common/src/pgr_types.h"

Go to the source code of this file.

Functions

void do_pgr_contractGraph (pgr_edge_t *data_edges, size_t total_edges, int64_t *forbidden_vertices, size_t size_forbidden_vertices, int64_t *contraction_order, size_t size_contraction_order, int64_t max_cycles, bool directed, pgr_contracted_blob **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg)
 
template<typename G >
static void get_postgres_result (G &graph, const Identifiers< int64_t > remaining_vertices, const std::vector< pgrouting::CH_edge > shortcut_edges, pgr_contracted_blob **return_tuples)
 
static bool is_valid_contraction (int64_t number)
 
template<typename G >
static void process_contraction (G &graph, const std::vector< pgr_edge_t > &edges, const std::vector< int64_t > forbidden_vertices, const std::vector< int64_t > contraction_order, int64_t max_cycles, Identifiers< int64_t > &remaining_vertices, std::vector< pgrouting::CH_edge > &shortcut_edges, std::ostringstream &log, std::ostringstream &err)
 

Function Documentation

void do_pgr_contractGraph ( pgr_edge_t data_edges,
size_t  total_edges,
int64_t *  forbidden_vertices,
size_t  size_forbidden_vertices,
int64_t *  contraction_order,
size_t  size_contraction_order,
int64_t  max_cycles,
bool  directed,
pgr_contracted_blob **  return_tuples,
size_t *  return_count,
char **  log_msg,
char **  notice_msg,
char **  err_msg 
)
template<typename G >
static void get_postgres_result ( G &  graph,
const Identifiers< int64_t >  remaining_vertices,
const std::vector< pgrouting::CH_edge shortcut_edges,
pgr_contracted_blob **  return_tuples 
)
static
static bool is_valid_contraction ( int64_t  number)
static

Definition at line 45 of file contractGraph_driver.cpp.

Referenced by do_pgr_contractGraph().

template<typename G >
static void process_contraction ( G &  graph,
const std::vector< pgr_edge_t > &  edges,
const std::vector< int64_t >  forbidden_vertices,
const std::vector< int64_t >  contraction_order,
int64_t  max_cycles,
Identifiers< int64_t > &  remaining_vertices,
std::vector< pgrouting::CH_edge > &  shortcut_edges,
std::ostringstream &  log,
std::ostringstream &  err 
)
static

Definition at line 59 of file contractGraph_driver.cpp.

References Identifiers< T >::insert().

Referenced by do_pgr_contractGraph().