![]() |
OR-Tools
9.6
|
This is a special class to represent a 'residual' set of T.
T must be an integer type. You fill it at first, and then during search, you can efficiently remove an element, and query the removed elements.
Definition at line 2564 of file constraint_solveri.h.
Public Types | |
| typedef const T * | const_iterator |
| Iterators on the indices. More... | |
Public Member Functions | |
| RevIntSet (int capacity) | |
| Capacity is the fixed size of the set (it cannot grow). More... | |
| RevIntSet (int capacity, int *shared_positions, int shared_positions_size) | |
| Capacity is the fixed size of the set (it cannot grow). More... | |
| ~RevIntSet () | |
| int | Size () const |
| int | Capacity () const |
| T | Element (int i) const |
| T | RemovedElement (int i) const |
| void | Insert (Solver *const solver, const T &elt) |
| void | Remove (Solver *const solver, const T &value_index) |
| void | Restore (Solver *const solver, const T &value_index) |
| void | Clear (Solver *const solver) |
| const_iterator | begin () const |
| const_iterator | end () const |
Static Public Attributes | |
| static constexpr int | kNoInserted = -1 |
| typedef const T* const_iterator |
Iterators on the indices.
Definition at line 2636 of file constraint_solveri.h.
|
inlineexplicit |
Capacity is the fixed size of the set (it cannot grow).
Definition at line 2569 of file constraint_solveri.h.
|
inline |
Capacity is the fixed size of the set (it cannot grow).
Definition at line 2581 of file constraint_solveri.h.
|
inline |
Definition at line 2592 of file constraint_solveri.h.
|
inline |
Definition at line 2637 of file constraint_solveri.h.
|
inline |
Definition at line 2600 of file constraint_solveri.h.
|
inline |
Definition at line 2633 of file constraint_solveri.h.
|
inline |
Definition at line 2602 of file constraint_solveri.h.
|
inline |
Definition at line 2638 of file constraint_solveri.h.
|
inline |
Valid.
Definition at line 2614 of file constraint_solveri.h.
|
inline |
Definition at line 2623 of file constraint_solveri.h.
|
inline |
Definition at line 2608 of file constraint_solveri.h.
|
inline |
Definition at line 2628 of file constraint_solveri.h.
|
inline |
Definition at line 2598 of file constraint_solveri.h.
|
staticconstexpr |
Definition at line 2566 of file constraint_solveri.h.