Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ examples/ cpp/

LocationContainer Class Reference

Location container, contains positions of orders and can be used to obtain Manhattan distances/times between locations. More...

List of all members.

Public Member Functions

 LocationContainer (int64 speed)
void AddLocation (int64 x, int64 y)
void AddRandomLocation (int64 x_max, int64 y_max)
int64 ManhattanDistance (RoutingModel::NodeIndex from, RoutingModel::NodeIndex to) const
int64 ManhattanTime (RoutingModel::NodeIndex from, RoutingModel::NodeIndex to) const

Classes

class  Location


Detailed Description

Location container, contains positions of orders and can be used to obtain Manhattan distances/times between locations.

Definition at line 65 of file cvrptw.cc.


Constructor & Destructor Documentation

LocationContainer::LocationContainer ( int64  speed  )  [inline, explicit]

Definition at line 67 of file cvrptw.cc.


Member Function Documentation

void LocationContainer::AddLocation ( int64  x,
int64  y 
) [inline]

Definition at line 71 of file cvrptw.cc.

void LocationContainer::AddRandomLocation ( int64  x_max,
int64  y_max 
) [inline]

Definition at line 74 of file cvrptw.cc.

int64 LocationContainer::ManhattanDistance ( RoutingModel::NodeIndex  from,
RoutingModel::NodeIndex  to 
) const [inline]

Definition at line 77 of file cvrptw.cc.

int64 LocationContainer::ManhattanTime ( RoutingModel::NodeIndex  from,
RoutingModel::NodeIndex  to 
) const [inline]

Definition at line 81 of file cvrptw.cc.


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