PGROUTING
3.2
|
The Dnode class defines a the basic operations when data is a matrix. More...
#include "dnode.h"
Public Member Functions | |
double | distance (const Dnode &other) const |
int64_t | id () const |
size_t | idx () const |
void | reset_id (int64_t) |
constructors | |
Dnode ()=default | |
Dnode (size_t id, int64_t original_id) | |
data constructor More... | |
Static Protected Member Functions | |
static Pgr_messages & | msg () |
Static Protected Attributes | |
static Pgr_pickDeliver * | problem |
The problem. More... | |
Private Attributes | |
int64_t | m_id |
size_t | m_idx |
friend | PD_problem |
Friends | |
std::ostream & | operator<< (std::ostream &log, const Dnode &node) |
The Dnode class defines a the basic operations when data is a matrix.
currently needs the PD_problem
|
default |
pgrouting::vrp::Dnode::Dnode | ( | size_t | id, |
int64_t | original_id | ||
) |
double pgrouting::vrp::Dnode::distance | ( | const Dnode & | other | ) | const |
Definition at line 43 of file dnode.cpp.
References pgrouting::tsp::Dmatrix::distance(), pgrouting::vrp::Pgr_pickDeliver::get_cost_matrix(), pgrouting::tsp::Dmatrix::get_index(), pgrouting::Identifier::id(), and problem.
Referenced by pgrouting::vrp::Tw_node::travel_time_to().
|
inherited |
Definition at line 42 of file identifier.cpp.
References pgrouting::Identifier::m_id.
Referenced by distance(), pgrouting::vrp::Vehicle::get_postgres_result(), pgrouting::vrp::Vehicle::is_phony(), pgrouting::vrp::operator<<(), pgrouting::operator<<(), pgrouting::vrp::Tw_node::operator==(), pgrouting::vrp::Vehicle::tau(), and pgrouting::vrp::Vehicle::Vehicle().
|
inherited |
Definition at line 37 of file identifier.cpp.
References pgrouting::Identifier::m_idx.
Referenced by pgrouting::vrp::Vehicle::erase(), pgrouting::vrp::Vehicle_pickDeliver::erase(), pgrouting::vrp::Vehicle_pickDeliver::has_order(), pgrouting::vrp::Vehicle_pickDeliver::insert(), pgrouting::vrp::Vehicle::insert(), pgrouting::vrp::operator<<(), pgrouting::operator<<(), pgrouting::vrp::Tw_node::operator==(), pgrouting::vrp::Vehicle_pickDeliver::push_back(), pgrouting::vrp::Vehicle_pickDeliver::push_front(), pgrouting::vrp::Vehicle_pickDeliver::semiLIFO(), pgrouting::vrp::Order::set_compatibles(), pgrouting::vrp::Vehicle::tau(), and pgrouting::vrp::Vehicle::Vehicle().
|
staticprotected |
|
inherited |
Definition at line 47 of file identifier.cpp.
References pgrouting::Identifier::m_id.
Referenced by pgrouting::vrp::Tw_node::Tw_node().
|
friend |
|
privateinherited |
Definition at line 53 of file identifier.h.
Referenced by pgrouting::Identifier::id(), and pgrouting::Identifier::reset_id().
|
privateinherited |
Definition at line 52 of file identifier.h.
Referenced by pgrouting::Identifier::idx().
|
staticprotected |
The problem.
Definition at line 70 of file dnode.h.
Referenced by distance(), and pgrouting::vrp::PD_problem::PD_problem().