Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class LocalSearchVariable
Note: This documentation is automatically generated.
A LocalSearchVariable can only be created by a LocalSearchState, then it is
meant to be passed by copy. If at some point the duplication of
LocalSearchState pointers is too expensive, we could switch to index only,
and the user would have to know the relevant state. The present setup allows
to ensure that variable users will not misuse the state.
Method |
Max | Return type: int64_t |
Min | Return type: int64_t |
Relax | Return type: void |
SetMax | Return type: bool Arguments: int64_t new_max |
SetMin | Return type: bool Arguments: int64_t new_min |
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."],[],["`LocalSearchVariable` instances are created by `LocalSearchState` and passed by copy. The class provides methods for managing the variable's range: `Min()` and `Max()` return the current minimum and maximum values. `SetMin()` and `SetMax()` adjust these values, returning a boolean indicating success. `Relax()` allows modifying variable constraints. If copying `LocalSearchState` pointers becomes too expensive, the implementation could switch to using indexes, potentially requiring users to track state.\n"],null,[]]