![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <element_diff.h>
Public Member Functions | |
int64_t | checkpoint () const |
const absl::flat_hash_set< int64_t > & | deleted () const |
The elements that have been deleted before the checkpoint. | |
void | Delete (int64_t id) |
Tracks the element id as deleted if it is less than the checkpoint. | |
void | Advance (int64_t checkpoint) |
Update the checkpoint and clears all tracked deletions. |
Tracks the ids of the elements in a model that:
Generally:
Definition at line 34 of file element_diff.h.
|
inline |
Update the checkpoint and clears all tracked deletions.
Definition at line 52 of file element_diff.h.
|
inline |
The current checkpoint for this element, generally the next_id for this element when Advance() was last called (or at creation time if advance was never called).
Definition at line 39 of file element_diff.h.
|
inline |
Tracks the element id as deleted if it is less than the checkpoint.
Definition at line 45 of file element_diff.h.
|
inline |
The elements that have been deleted before the checkpoint.
Definition at line 42 of file element_diff.h.