![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Reversible array of POD types. It contains the stamp optimization. I.e., the SaveValue call is done only once per node of the search tree. Please note that actual stamp always starts at 1, thus an initial value of 0 always triggers the first SaveValue.
Definition at line 4135 of file constraint_solver.h.
#include <constraint_solver.h>
Public Member Functions | |
| RevArray (int size, const T &val) | |
| ~RevArray () | |
| int64_t | size () const |
| const T & | Value (int index) const |
| const T & | operator[] (int index) const |
| void | SetValue (Solver *const s, int index, const T &val) |
|
inline |
Definition at line 4137 of file constraint_solver.h.
|
inline |
Definition at line 4145 of file constraint_solver.h.
|
inline |
Definition at line 4152 of file constraint_solver.h.
|
inline |
Definition at line 4155 of file constraint_solver.h.
|
inline |
Definition at line 4147 of file constraint_solver.h.
|
inline |
Definition at line 4149 of file constraint_solver.h.