OR-Tools  8.2
RoutingModel::VehicleTypeContainer

Detailed Description

Struct used to sort and store vehicles by their type.

Two vehicles have the same "vehicle type" iff they have the same cost class and start/end nodes.

Definition at line 358 of file routing.h.

Classes

struct  VehicleClassEntry
 

Public Member Functions

int NumTypes () const
 
int Type (int vehicle) const
 

Public Attributes

std::vector< int > type_index_of_vehicle
 
std::vector< std::set< VehicleClassEntry > > sorted_vehicle_classes_per_type
 
std::vector< std::deque< int > > vehicles_per_vehicle_class
 

Member Function Documentation

◆ NumTypes()

int NumTypes ( ) const
inline

Definition at line 369 of file routing.h.

◆ Type()

int Type ( int  vehicle) const
inline

Definition at line 371 of file routing.h.

Member Data Documentation

◆ sorted_vehicle_classes_per_type

std::vector<std::set<VehicleClassEntry> > sorted_vehicle_classes_per_type

Definition at line 378 of file routing.h.

◆ type_index_of_vehicle

std::vector<int> type_index_of_vehicle

Definition at line 376 of file routing.h.

◆ vehicles_per_vehicle_class

std::vector<std::deque<int> > vehicles_per_vehicle_class

Definition at line 379 of file routing.h.


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