PGROUTING  2.6
restriction.cpp File Reference
#include "dijkstraTRSP/restriction.h"
#include <vector>
#include <memory>
#include <utility>
#include <limits>
Include dependency graph for restriction.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &log, const Restriction &r)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  log,
const Restriction r 
)

Definition at line 43 of file restriction.cpp.

References Restriction::cost(), Restriction::id(), and Restriction::restrict_edges().

43  {
44  log << "\n--------------------------------\nRestriction\n";
45  log << "ID: " << r.id() << "\nRestricion edge sequence: ";
46  for (const auto &v : r.restrict_edges()) {
47  log << v <<" ";
48  }
49  log << "\n";
50  log << "Cost: " << r.cost() << "\n";
51  return log;
52 }
double cost() const
Definition: restriction.h:51
int64_t id() const
Definition: restriction.h:48
std::vector< int64_t > restrict_edges() const
Definition: restriction.h:54

Here is the call graph for this function: