Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: routing_types
Note: This documentation is automatically generated.
Defining common types used in the routing library outside the main RoutingModel class has several purposes: 1) It allows some small libraries to avoid a dependency on routing.{h,cc}, eg. routing_neighborhoods.h. 2) It allows an easier wrapping via SWIG, which can have issues with intra-class types.
Users that depend on routing.{h,cc} should just use the RoutingModel:: equivalent, eg. RoutingModel::NodeIndex.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The documentation defines common types for the routing library, independent of the `RoutingModel` class, to avoid dependencies and simplify SWIG wrapping. It outlines the use of the `DEFINE_INT_TYPE` function to define specific integer-based types. The defined types include `RoutingNodeIndex`, `RoutingCostClassIndex`, `RoutingDimensionIndex`, `RoutingDisjunctionIndex`, and `RoutingVehicleClassIndex`. Users directly utilizing `routing.{h,cc}` should opt for the corresponding `RoutingModel::` types. These types are used as arguments.\n"],null,[]]