Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class TypeRegulationsChecker
Note: This documentation is automatically generated.
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."],[[["\u003cp\u003eThe \u003ccode\u003eTypeRegulationsChecker\u003c/code\u003e class is used within the Google OR-Tools constraint solver, specifically for routing functionalities.\u003c/p\u003e\n"],["\u003cp\u003eIt primarily offers two key methods: \u003ccode\u003eCheckVehicle\u003c/code\u003e for validating vehicle compliance and a constructor \u003ccode\u003eTypeRegulationsChecker\u003c/code\u003e for initializing the checker with a routing model.\u003c/p\u003e\n"],["\u003cp\u003eA destructor \u003ccode\u003e~TypeRegulationsChecker\u003c/code\u003e is also provided for proper object cleanup.\u003c/p\u003e\n"]]],["The `TypeRegulationsChecker` class in C++ provides functionality for checking vehicle regulations. It includes a constructor `TypeRegulationsChecker` that takes a `RoutingModel` as an argument, and a virtual destructor `~TypeRegulationsChecker`. The class also offers a `CheckVehicle` method. This method receives an integer representing a vehicle and a lambda function (`next_accessor`) to determine the next element. The method then returns a boolean value indicating the result of the vehicle check.\n"],null,["# TypeRegulationsChecker\n\nC++ Reference: class TypeRegulationsChecker\n===========================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [`CheckVehicle`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing.h#L2395) | Return type: `bool ` Arguments: `int vehicle, const std::function\u003cint64_t(int64_t)\u003e& next_accessor` \u003cbr /\u003e |\n| [`TypeRegulationsChecker`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing.h#L2392) | Return type: `explicit ` Arguments: `const RoutingModel& model` \u003cbr /\u003e |\n| [`~TypeRegulationsChecker`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/routing.h#L2393) | Return type: `virtual ` \u003cbr /\u003e |"]]