PGROUTING  3.2
pgrouting::vrp::Swap_info Class Reference

#include "book_keeping.h"

Collaboration diagram for pgrouting::vrp::Swap_info:

Public Member Functions

 Swap_info ()=delete
 
 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

◆ Swap_info() [1/3]

pgrouting::vrp::Swap_info::Swap_info ( )
delete

◆ Swap_info() [2/3]

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

◆ Swap_info() [3/3]

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  { }

Friends And Related Function Documentation

◆ operator<<

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 }

◆ Swap_bk

friend class Swap_bk
friend

Definition at line 45 of file book_keeping.h.

Member Data Documentation

◆ estimated_delta

double pgrouting::vrp::Swap_info::estimated_delta

◆ from_order

size_t pgrouting::vrp::Swap_info::from_order

Definition at line 77 of file book_keeping.h.

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

◆ from_truck

Vehicle_pickDeliver pgrouting::vrp::Swap_info::from_truck

Definition at line 75 of file book_keeping.h.

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

◆ to_order

size_t pgrouting::vrp::Swap_info::to_order

Definition at line 78 of file book_keeping.h.

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

◆ to_truck

Vehicle_pickDeliver pgrouting::vrp::Swap_info::to_truck

Definition at line 76 of file book_keeping.h.

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


The documentation for this class was generated from the following files:
pgrouting::vrp::Swap_info::from_order
size_t from_order
Definition: book_keeping.h:77
pgrouting::vrp::Swap_info::estimated_delta
double estimated_delta
Definition: book_keeping.h:79
pgrouting::vrp::Swap_info::from_truck
Vehicle_pickDeliver from_truck
Definition: book_keeping.h:75
pgrouting::vrp::Swap_info::to_order
size_t to_order
Definition: book_keeping.h:78
pgrouting::vrp::Swap_info::to_truck
Vehicle_pickDeliver to_truck
Definition: book_keeping.h:76