PGROUTING
3.2
|
#include "pd_orders.h"
Public Types | |
typedef Orders::const_iterator | o_const_iterator |
typedef Orders::iterator | o_iterator |
Public Member Functions | |
size_t | find_best_I (Identifiers< size_t > &within_this_set) const |
size_t | find_best_J (Identifiers< size_t > &within_this_set) const |
void | set_compatibles (double speed) |
constructors | |
PD_Orders ()=default | |
PD_Orders (const PD_Orders &)=default | |
PD_Orders (const std::vector< PickDeliveryOrders_t > &) | |
std container functions | |
functions with same "meaning" as an std container | |
Order & | operator[] (size_t o) |
const Order & | operator[] (size_t o) const |
size_t | size () const |
o_iterator | begin () |
o_iterator | end () |
o_const_iterator | begin () const |
o_const_iterator | end () const |
Private Types | |
typedef std::vector< Order > | Orders |
Private Member Functions | |
void | add_order (const PickDeliveryOrders_t &, const Vehicle_node &, const Vehicle_node &) |
void | build_orders (const std::vector< PickDeliveryOrders_t > &pd_orders) |
Pgr_messages & | msg () const |
Access to the problem's message. More... | |
Private Attributes | |
Orders | m_orders |
Static Private Attributes | |
static Pgr_pickDeliver * | problem |
The problem. More... | |
Friends | |
class | PD_problem |
PD_rpblem needs access to set up the problem pointer. More... | |
Definition at line 48 of file pd_orders.h.
typedef Orders::const_iterator pgrouting::vrp::PD_Orders::o_const_iterator |
Definition at line 56 of file pd_orders.h.
typedef Orders::iterator pgrouting::vrp::PD_Orders::o_iterator |
Definition at line 55 of file pd_orders.h.
|
private |
Definition at line 52 of file pd_orders.h.
|
default |
|
default |
|
explicit |
Definition at line 40 of file pd_orders.cpp.
References build_orders().
|
private |
Definition at line 48 of file pd_orders.cpp.
References PickDeliveryOrders_t::id, and m_orders.
Referenced by build_orders().
|
inline |
|
inline |
|
private |
Definition at line 64 of file pd_orders.cpp.
References pgrouting::vrp::Pgr_pickDeliver::add_node(), add_order(), ENTERING, EXITING, pgrouting::vrp::Pgr_pickDeliver::get_cost_matrix(), pgrouting::vrp::Pgr_pickDeliver::get_nodes(), pgrouting::tsp::Dmatrix::has_id(), problem, and size().
Referenced by PD_Orders().
|
inline |
|
inline |
size_t pgrouting::vrp::PD_Orders::find_best_I | ( | Identifiers< size_t > & | within_this_set | ) | const |
Definition at line 144 of file pd_orders.cpp.
References Identifiers< T >::empty(), Identifiers< T >::front(), m_orders, and pgassert.
Referenced by pgrouting::vrp::Vehicle_pickDeliver::do_while_feasable().
size_t pgrouting::vrp::PD_Orders::find_best_J | ( | Identifiers< size_t > & | within_this_set | ) | const |
Definition at line 125 of file pd_orders.cpp.
References Identifiers< T >::empty(), Identifiers< T >::front(), m_orders, and pgassert.
Referenced by pgrouting::vrp::Vehicle_pickDeliver::do_while_feasable().
|
private |
Access to the problem's message.
Order & pgrouting::vrp::PD_Orders::operator[] | ( | size_t | o | ) |
const Order & pgrouting::vrp::PD_Orders::operator[] | ( | size_t | o | ) | const |
void pgrouting::vrp::PD_Orders::set_compatibles | ( | double | speed | ) |
Definition at line 116 of file pd_orders.cpp.
References m_orders.
Referenced by pgrouting::vrp::Vehicle_pickDeliver::set_compatibles().
|
inline |
Definition at line 79 of file pd_orders.h.
References m_orders.
Referenced by build_orders(), and pgrouting::vrp::Pgr_pickDeliver::solve().
|
friend |
PD_rpblem needs access to set up the problem pointer.
Definition at line 50 of file pd_orders.h.
|
private |
Definition at line 97 of file pd_orders.h.
Referenced by add_order(), begin(), end(), find_best_I(), find_best_J(), operator[](), set_compatibles(), and size().
|
staticprivate |
The problem.
Definition at line 103 of file pd_orders.h.
Referenced by build_orders(), and pgrouting::vrp::PD_problem::PD_problem().