PGROUTING
3.2
|
#include "pgr_withPoints.hpp"
Classes | |
struct | pointCompare |
Public Member Functions | |
Pg_points_graph ()=delete | |
Pg_points_graph (const Pg_points_graph &)=delete | |
Pg_points_graph (std::vector< Point_on_edge_t > p_points, std::vector< pgr_edge_t > p_edges_to_modify, bool p_normal, char p_driving_side, bool p_directed) | |
void | adjust_pids (const std::vector< Point_on_edge_t > &points, Path &path) |
void | clear () |
clear More... | |
char | driving_side () const |
std::vector< pgr_edge_t > | edges_of_points () const |
Path | eliminate_details (Path path) const |
void | eliminate_details_dd (Path &path) const |
std::string | get_error () const |
get_error More... | |
std::string | get_log () const |
get_log More... | |
std::string | get_notice () const |
get_notice More... | |
bool | has_error () const |
get_error More... | |
std::vector< pgr_edge_t > | new_edges () const |
std::vector< Point_on_edge_t > | points () const |
Public Attributes | |
std::ostringstream | error |
Stores the error information. More... | |
std::ostringstream | log |
Stores the hint information. More... | |
std::ostringstream | notice |
Stores the notice information. More... | |
Private Member Functions | |
void | adjust_pids (const std::vector< Point_on_edge_t > &points, const int64_t &start_pid, const int64_t &end_pid, Path &path) |
void | check_points () |
void | create_new_edges () |
const pgr_edge_t * | get_edge_data (int64_t eid) const |
int64_t | get_edge_id (int64_t pid) const |
void | reverse_sides () |
Private Attributes | |
bool | m_directed |
char | m_driving_side |
std::vector< pgr_edge_t > | m_edges_of_points |
std::vector< pgr_edge_t > | m_new_edges |
std::vector< Point_on_edge_t > | m_o_points |
std::vector< Point_on_edge_t > | m_points |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Pg_points_graph &g) |
Definition at line 40 of file pgr_withPoints.hpp.
|
delete |
|
delete |
pgrouting::Pg_points_graph::Pg_points_graph | ( | std::vector< Point_on_edge_t > | p_points, |
std::vector< pgr_edge_t > | p_edges_to_modify, | ||
bool | p_normal, | ||
char | p_driving_side, | ||
bool | p_directed | ||
) |
Definition at line 71 of file pgr_withPoints.cpp.
References check_points(), create_new_edges(), pgrouting::Pgr_messages::log, m_directed, m_driving_side, and reverse_sides().
|
private |
Definition at line 273 of file pgr_withPoints.cpp.
References Path::empty(), Path::end_id(), points(), and Path::start_id().
void pgrouting::Pg_points_graph::adjust_pids | ( | const std::vector< Point_on_edge_t > & | points, |
Path & | path | ||
) |
Definition at line 293 of file pgr_withPoints.cpp.
References Path::empty(), Path::end_id(), points(), and Path::start_id().
|
private |
Definition at line 112 of file pgr_withPoints.cpp.
References pgrouting::Pgr_messages::error, pgrouting::Pgr_messages::log, and m_points.
Referenced by Pg_points_graph().
|
inherited |
clear
Clears All the messages
Definition at line 59 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error, pgrouting::Pgr_messages::log, and pgrouting::Pgr_messages::notice.
Referenced by do_pgr_pickDeliver().
|
private |
Definition at line 328 of file pgr_withPoints.cpp.
References pgr_edge_t::cost, edge::cost, pgrouting::Pgr_messages::error, pgr_edge_t::id, edge::id, pgrouting::Pgr_messages::log, m_driving_side, m_edges_of_points, m_new_edges, m_points, pgassert, pgr_edge_t::reverse_cost, edge::reverse_cost, pgr_edge_t::source, edge::source, pgr_edge_t::target, and edge::target.
Referenced by Pg_points_graph().
|
inline |
std::vector< pgr_edge_t > pgrouting::Pg_points_graph::edges_of_points | ( | ) | const |
Definition at line 65 of file pgr_withPoints.cpp.
References m_edges_of_points.
Definition at line 229 of file pgr_withPoints.cpp.
References Path::empty(), Path::end_id(), m_edges_of_points, Path::push_back(), Path::size(), and Path::start_id().
Referenced by do_pgr_withPoints(), and do_pgr_withPointsKsp().
void pgrouting::Pg_points_graph::eliminate_details_dd | ( | Path & | path | ) | const |
Definition at line 176 of file pgr_withPoints.cpp.
References Path::empty(), Path::end_id(), get_edge_data(), get_edge_id(), Path::push_back(), and Path::start_id().
Referenced by do_pgr_many_withPointsDD().
|
private |
Definition at line 165 of file pgr_withPoints.cpp.
References m_edges_of_points.
Referenced by eliminate_details_dd().
|
private |
Definition at line 154 of file pgr_withPoints.cpp.
References m_points.
Referenced by eliminate_details_dd().
|
inherited |
get_error
Definition at line 53 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_log
Definition at line 36 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::log.
Referenced by do_pgr_bipartite(), do_pgr_boyerMyrvold(), do_pgr_LTDTree(), do_pgr_makeConnected(), do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), pgr_bellman_ford(), pgr_dijkstraTR(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_notice
Definition at line 42 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::notice.
|
inherited |
get_error
Definition at line 48 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_withPoints(), and do_pgr_withPointsKsp().
std::vector< pgr_edge_t > pgrouting::Pg_points_graph::new_edges | ( | ) | const |
Definition at line 323 of file pgr_withPoints.cpp.
References m_new_edges.
Referenced by do_pgr_many_withPointsDD(), do_pgr_withPoints(), and do_pgr_withPointsKsp().
std::vector< Point_on_edge_t > pgrouting::Pg_points_graph::points | ( | ) | const |
|
private |
Definition at line 94 of file pgr_withPoints.cpp.
References m_driving_side, and m_points.
Referenced by Pg_points_graph().
|
friend |
Definition at line 46 of file pgr_withPoints.cpp.
|
mutableinherited |
Stores the error information.
Definition at line 85 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::build_fleet(), check_points(), pgrouting::Pgr_messages::clear(), create_new_edges(), pgrouting::Pgr_messages::get_error(), pgrouting::Pgr_messages::has_error(), pgrouting::vrp::Fleet::is_fleet_ok(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
mutableinherited |
Stores the hint information.
Definition at line 81 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::add_vehicle(), Pgr_bellman_ford< G >::bellman_ford(), Pgr_bellman_ford< G >::bellman_ford_1_to_1(), Pgr_bellman_ford< G >::bellman_ford_1_to_many(), pgrouting::alphashape::Pgr_alphaShape::build_best_alpha(), pgrouting::vrp::Fleet::build_fleet(), check_points(), pgrouting::Pgr_messages::clear(), create_new_edges(), pgrouting::vrp::Vehicle_pickDeliver::do_while_feasable(), pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::functions::Pgr_makeConnected< G >::generatemakeConnected(), pgrouting::Pgr_messages::get_log(), Pgr_bellman_ford< G >::get_paths(), pgrouting::vrp::Pgr_pickDeliver::get_postgres_result(), pgrouting::vrp::Vehicle::get_postgres_result(), pgrouting::vrp::Fleet::get_truck(), pgrouting::vrp::Optimize::inter_swap(), pgrouting::vrp::Fleet::is_fleet_ok(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Optimize::Optimize(), Pg_points_graph(), pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver(), pgrouting::vrp::Optimize::save_if_best(), pgrouting::vrp::Solution::Solution(), pgrouting::vrp::Pgr_pickDeliver::solve(), and pgrouting::vrp::Vehicle::Vehicle().
|
private |
Definition at line 96 of file pgr_withPoints.hpp.
Referenced by Pg_points_graph().
|
private |
Definition at line 95 of file pgr_withPoints.hpp.
Referenced by create_new_edges(), driving_side(), Pg_points_graph(), and reverse_sides().
|
private |
Definition at line 93 of file pgr_withPoints.hpp.
Referenced by create_new_edges(), edges_of_points(), eliminate_details(), and get_edge_data().
|
private |
Definition at line 94 of file pgr_withPoints.hpp.
Referenced by create_new_edges(), and new_edges().
|
private |
Definition at line 92 of file pgr_withPoints.hpp.
|
private |
Definition at line 91 of file pgr_withPoints.hpp.
Referenced by check_points(), create_new_edges(), get_edge_id(), pgrouting::operator<<(), points(), and reverse_sides().
|
mutableinherited |
Stores the notice information.
Definition at line 83 of file pgr_messages.h.
Referenced by pgrouting::Pgr_messages::clear(), and pgrouting::Pgr_messages::get_notice().