PGROUTING  2.6-dev
pgrouting::vrp::Swap_info Class Reference

#include "book_keeping.h"

Collaboration diagram for pgrouting::vrp::Swap_info:

Public Member Functions

 Swap_info ()=default
 
 Swap_info (const Swap_info &)=default
 
 Swap_info (const Vehicle_pickDeliver &from, const Vehicle_pickDeliver &to, size_t from_o, size_t to_o, double delta)
 

Public Attributes

double estimated_delta
 
size_t from_order
 
Vehicle_pickDeliver from_truck
 
size_t to_order
 
Vehicle_pickDeliver to_truck
 

Friends

std::ostream & operator<< (std::ostream &log, const Swap_info &d)
 
class Swap_bk
 

Detailed Description

Definition at line 44 of file book_keeping.h.

Constructor & Destructor Documentation

pgrouting::vrp::Swap_info::Swap_info ( )
default

Referenced by pgrouting::vrp::Swap_bk::Compare::operator()().

Here is the caller graph for this function:

pgrouting::vrp::Swap_info::Swap_info ( const Swap_info )
default
pgrouting::vrp::Swap_info::Swap_info ( const Vehicle_pickDeliver from,
const Vehicle_pickDeliver to,
size_t  from_o,
size_t  to_o,
double  delta 
)

Definition at line 35 of file book_keeping.cpp.

39  :
40  from_truck(from),
41  to_truck(to),
42  from_order(from_o),
43  to_order(to_o),
44  estimated_delta(delta)
45  { }
Vehicle_pickDeliver from_truck
Definition: book_keeping.h:83
Vehicle_pickDeliver to_truck
Definition: book_keeping.h:84

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  log,
const Swap_info d 
)
friend

Definition at line 47 of file book_keeping.cpp.

47  {
48  log << "\n" << d.from_truck.tau() << " --> "
49  << d.from_order
50  << "("
51  << d.from_truck.orders()[d.from_order].pickup().id()
52  << ")"
53  << "\n" << d.to_truck.tau() << " --> "
54  << d.to_order
55  << "("
56  << d.to_truck.orders()[d.to_order].pickup().id()
57  << ")"
58  << "\n" << "delta = " << d.estimated_delta;
59  return log;
60 }
friend class Swap_bk
friend

Definition at line 45 of file book_keeping.h.

Member Data Documentation

double pgrouting::vrp::Swap_info::estimated_delta
size_t pgrouting::vrp::Swap_info::from_order

Definition at line 85 of file book_keeping.h.

Referenced by pgrouting::vrp::operator<<().

Vehicle_pickDeliver pgrouting::vrp::Swap_info::from_truck

Definition at line 83 of file book_keeping.h.

Referenced by pgrouting::vrp::operator<<().

size_t pgrouting::vrp::Swap_info::to_order

Definition at line 86 of file book_keeping.h.

Referenced by pgrouting::vrp::operator<<().

Vehicle_pickDeliver pgrouting::vrp::Swap_info::to_truck

Definition at line 84 of file book_keeping.h.

Referenced by pgrouting::vrp::operator<<().


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