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
Path Class Reference

#include "basePath_SSEC.hpp"

Public Member Functions

 Path ()
 
 Path (int64_t s_id, int64_t e_id)
 
void appendPath (const Path &o_path)
 
const Path_tback () const
 
Path_tback ()
 
pthIt begin ()
 
ConstpthIt begin () const
 
void clear ()
 
bool empty () const
 
void empty_path (unsigned int d_vertex)
 
pthIt end ()
 
ConstpthIt end () const
 
int64_t end_id () const
 
void end_id (int64_t value)
 
void erase (pthIt pos)
 
const Path_tfront () const
 
Path_tfront ()
 
void generate_postgres_data (General_path_element_t **postgres_data, size_t &sequence) const
 
void get_pg_dd_path (General_path_element_t **ret_path, size_t &sequence) const
 
void get_pg_ksp_path (General_path_element_t **ret_path, size_t &sequence, int routeId) const
 
Path getSubpath (unsigned int j) const
 
bool isEqual (const Path &subpath) const
 
const Path_toperator[] (size_t i) const
 
Path_toperator[] (size_t i)
 
void push_back (Path_t data)
 
void push_front (Path_t data)
 
void push_front (int64_t d_vertex, int64_t d_edge, double d_cost, double d_tot_cost)
 
void reverse ()
 
Path_t set_data (int64_t d_from, int64_t d_to, int64_t d_vertex, int64_t d_edge, double d_cost, double d_tot_cost)
 
size_t size () const
 
int64_t start_id () const
 
void start_id (int64_t value)
 
double tot_cost () const
 

Private Types

typedef std::deque< Path_t >
::const_iterator 
ConstpthIt
 
typedef std::deque< Path_t >
::iterator 
pthIt
 

Private Attributes

int64_t m_end_id
 
int64_t m_start_id
 
double m_tot_cost
 
std::deque< Path_tpath
 

Friends

size_t collapse_paths (General_path_element_t **ret_path, const std::deque< Path > &paths)
 
size_t count_tuples (const std::deque< Path > &paths)
 
void equi_cost (std::deque< Path > &paths)
 
std::ostream & operator<< (std::ostream &log, const Path &p)
 

Detailed Description

Definition at line 40 of file basePath_SSEC.hpp.

Member Typedef Documentation

typedef std::deque< Path_t >::const_iterator Path::ConstpthIt
private

Definition at line 42 of file basePath_SSEC.hpp.

typedef std::deque< Path_t >::iterator Path::pthIt
private

Definition at line 41 of file basePath_SSEC.hpp.

Constructor & Destructor Documentation

Path::Path ( )
inline

Definition at line 51 of file basePath_SSEC.hpp.

Path::Path ( int64_t  s_id,
int64_t  e_id 
)
inline

Definition at line 52 of file basePath_SSEC.hpp.

Member Function Documentation

void Path::appendPath ( const Path o_path)

Definition at line 116 of file basePath_SSEC.cpp.

References m_tot_cost, and path.

Referenced by Pgr_ksp< G >::doNextCycle().

const Path_t& Path::back ( ) const
inline

Definition at line 76 of file basePath_SSEC.hpp.

References path.

Path_t& Path::back ( )
inline

Definition at line 77 of file basePath_SSEC.hpp.

References path.

pthIt Path::begin ( )
inline

Definition at line 69 of file basePath_SSEC.hpp.

References path.

Referenced by do_pgr_withPointsDD(), Pgr_dijkstra< G >::drivingDistance(), and isEqual().

ConstpthIt Path::begin ( ) const
inline

Definition at line 71 of file basePath_SSEC.hpp.

References path.

void Path::empty_path ( unsigned int  d_vertex)
pthIt Path::end ( )
inline

Definition at line 70 of file basePath_SSEC.hpp.

References path.

Referenced by do_pgr_withPointsDD(), Pgr_dijkstra< G >::drivingDistance(), and isEqual().

ConstpthIt Path::end ( ) const
inline

Definition at line 72 of file basePath_SSEC.hpp.

References path.

void Path::end_id ( int64_t  value)
inline

Definition at line 58 of file basePath_SSEC.hpp.

References m_end_id.

void Path::erase ( pthIt  pos)
inline

Definition at line 75 of file basePath_SSEC.hpp.

References path.

const Path_t& Path::front ( ) const
inline

Definition at line 78 of file basePath_SSEC.hpp.

References path.

Path_t& Path::front ( )
inline

Definition at line 79 of file basePath_SSEC.hpp.

References path.

void Path::generate_postgres_data ( General_path_element_t **  postgres_data,
size_t &  sequence 
) const

Definition at line 122 of file basePath_SSEC.cpp.

References end_id(), path, and start_id().

Referenced by do_pgr_astarOneToOne(), do_pgr_one_to_one_dijkstra(), and do_pgr_withPoints().

void Path::get_pg_dd_path ( General_path_element_t **  ret_path,
size_t &  sequence 
) const

Definition at line 135 of file basePath_SSEC.cpp.

References path, and start_id().

Referenced by do_pgr_driving_distance(), and do_pgr_withPointsDD().

void Path::get_pg_ksp_path ( General_path_element_t **  ret_path,
size_t &  sequence,
int  routeId 
) const

Definition at line 151 of file basePath_SSEC.cpp.

References end_id(), and path.

Path Path::getSubpath ( unsigned int  j) const

Definition at line 95 of file basePath_SSEC.cpp.

References end_id(), path, push_back(), and start_id().

Referenced by Pgr_ksp< G >::doNextCycle().

bool Path::isEqual ( const Path subpath) const

Definition at line 105 of file basePath_SSEC.cpp.

References begin(), empty(), end(), path, and size().

const Path_t& Path::operator[] ( size_t  i) const
inline

Definition at line 66 of file basePath_SSEC.hpp.

References path.

Path_t& Path::operator[] ( size_t  i)
inline

Definition at line 67 of file basePath_SSEC.hpp.

References path.

void Path::push_front ( Path_t  data)
void Path::push_front ( int64_t  d_vertex,
int64_t  d_edge,
double  d_cost,
double  d_tot_cost 
)
void Path::reverse ( )

Definition at line 50 of file basePath_SSEC.cpp.

References path.

Path_t Path::set_data ( int64_t  d_from,
int64_t  d_to,
int64_t  d_vertex,
int64_t  d_edge,
double  d_cost,
double  d_tot_cost 
)
void Path::start_id ( int64_t  value)
inline

Definition at line 56 of file basePath_SSEC.hpp.

References m_start_id.

double Path::tot_cost ( ) const
inline

Definition at line 59 of file basePath_SSEC.hpp.

References m_tot_cost.

Referenced by Pgr_ksp< G >::compPaths::operator()(), and process_dijkstra().

Friends And Related Function Documentation

size_t collapse_paths ( General_path_element_t **  ret_path,
const std::deque< Path > &  paths 
)
friend

Definition at line 121 of file basePath_SSEC.hpp.

size_t count_tuples ( const std::deque< Path > &  paths)
friend

Definition at line 205 of file basePath_SSEC.hpp.

void equi_cost ( std::deque< Path > &  paths)
friend

Definition at line 148 of file basePath_SSEC.hpp.

std::ostream& operator<< ( std::ostream &  log,
const Path p 
)
friend

Definition at line 78 of file basePath_SSEC.cpp.

Member Data Documentation

int64_t Path::m_end_id
private

Definition at line 47 of file basePath_SSEC.hpp.

Referenced by clear(), and end_id().

int64_t Path::m_start_id
private

Definition at line 46 of file basePath_SSEC.hpp.

Referenced by clear(), and start_id().

double Path::m_tot_cost
private

Definition at line 48 of file basePath_SSEC.hpp.

Referenced by appendPath(), clear(), push_back(), push_front(), and tot_cost().


The documentation for this class was generated from the following files: