Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class ChangeValue
Note: This documentation is automatically generated.
Defines operators which change the value of variables;
each neighbor corresponds to *one* modified variable.
Sub-classes have to define ModifyValue which determines what the new
variable value is going to be (given the current value and the variable).
[[["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."],[[["The `ChangeValue` class defines operators that modify the values of variables."],["Each operator within this class focuses on changing a single variable."],["Subclasses need to implement the `ModifyValue` method, which determines the new value of a variable based on its current value and index."],["The class constructor takes a vector of `IntVar` pointers representing the variables to be modified."]]],["The `ChangeValue` class defines operators that modify variable values, with each neighbor representing one modified variable. Subclasses must implement `ModifyValue` to specify how a variable's new value is determined based on its current value and index. The class provides a constructor `ChangeValue` which takes a vector of `IntVar*` as arguments and a virtual method `ModifyValue` that takes `index` and the `value` as arguments. The class also defines a destructor `~ChangeValue`.\n"]]