[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eRevSwitch is a C++ class representing a reversible switch within the OR-Tools constraint solver.\u003c/p\u003e\n"],["\u003cp\u003eThis switch can only change its state once, transitioning from false to true.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to activate the switch (\u003ccode\u003eSwitch\u003c/code\u003e), check its status (\u003ccode\u003eSwitched\u003c/code\u003e), and is initialized through its constructor (\u003ccode\u003eRevSwitch\u003c/code\u003e).\u003c/p\u003e\n"]]],["The `RevSwitch` class in C++ represents a reversible switch that transitions from false to true only once. It has three core components: the `RevSwitch` constructor, the `Switch` method, and the `Switched` method. `Switched` returns a boolean indicating the current state of the switch. `Switch`, taking a solver object as an argument, performs the state change of the switch, from false to true.\n"],null,["# RevSwitch\n\nC++ Reference: class RevSwitch\n==============================\n\n\nNote: This documentation is automatically generated.\nA reversible switch that can switch once from false to true.\n\n| Method ||\n|-----------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| [`RevSwitch`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L385) | \u003cbr /\u003e |\n| [`Switch`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L389) | Return type: `void ` Arguments: `Solver* const solver` \u003cbr /\u003e |\n| [`Switched`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L387) | Return type: `bool ` \u003cbr /\u003e |"]]