![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <attr_diff.h>
Public Types | |
using | Key = AttrKey<n, Symmetry> |
Public Member Functions | |
AttrDiff ()=default | |
On creation, the attribute is not modified for any key. | |
void | Advance () |
Clear all tracked modifications. | |
void | SetModified (const Key key) |
Mark the attribute as modified for key. | |
const AttrKeyHashSet< Key > & | modified_keys () const |
bool | has_modified_keys () const |
void | Erase (const Key key) |
Tracks modifications to an Attribute with a key size of n (e.g., variable lower bound has a key size of 1).
Definition at line 28 of file attr_diff.h.
using operations_research::math_opt::AttrDiff< n, Symmetry >::Key = AttrKey<n, Symmetry> |
Definition at line 30 of file attr_diff.h.
|
default |
On creation, the attribute is not modified for any key.
|
inline |
Clear all tracked modifications.
Definition at line 36 of file attr_diff.h.
|
inline |
Stop tracking modifications for this attribute key. (Typically invoked when an element in the key was deleted from the model.)
Definition at line 50 of file attr_diff.h.
|
inline |
Definition at line 46 of file attr_diff.h.
|
inline |
Returns the attribute keys that have been modified for this attribute (the elements where set_modified() was called without a subsequent call to Advance()).
Definition at line 44 of file attr_diff.h.
|
inline |
Mark the attribute as modified for key.
Definition at line 39 of file attr_diff.h.