PGROUTING
3.2
|
#include "tour.h"
Public Member Functions | |
Tour (const std::vector< size_t > &cities_order) | |
Tour (const Tour &)=default | |
Tour (size_t n) | |
void | reverse (size_t c1, size_t c2) |
void | rotate (size_t c1, size_t c2, size_t c3) |
size_t | size () const |
void | slide (size_t place, size_t first, size_t last) |
void | swap (size_t c1, size_t c2) |
Public Attributes | |
std::vector< size_t > | cities |
Private Types | |
using | difference_type = std::vector< size_t >::difference_type |
Friends | |
double | Dmatrix::tourCost (const Tour &tour) const |
std::ostream & | operator<< (std::ostream &log, const Tour &tour) |
|
private |
|
default |
|
inlineexplicit |
|
inlineexplicit |
void pgrouting::tsp::Tour::rotate | ( | size_t | c1, |
size_t | c2, | ||
size_t | c3 | ||
) |
|
inline |
void pgrouting::tsp::Tour::slide | ( | size_t | place, |
size_t | first, | ||
size_t | last | ||
) |
Definition at line 56 of file tour.cpp.
References cities, and pgassert.
Referenced by pgrouting::tsp::TSP< MATRIX >::getDeltaSlide().
|
friend |
|
friend |
std::vector<size_t> pgrouting::tsp::Tour::cities |
Definition at line 156 of file tour.h.
Referenced by pgrouting::tsp::TSP< MATRIX >::getDeltaSlide(), pgrouting::tsp::operator<<(), reverse(), rotate(), size(), slide(), swap(), Tour(), pgrouting::tsp::EuclideanDmatrix::tourCost(), and pgrouting::tsp::Dmatrix::tourCost().