Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Diff Struct Reference

#include <atomic_constraint_storage.h>

Public Member Functions

 Diff (const AtomicConstraintStorage< ConstraintData > &storage)
 

Public Attributes

IdType checkpoint {0}
 
absl::flat_hash_set< IdTypedeleted_constraints
 

Detailed Description

template<typename ConstraintData>
struct operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Diff

Tracks a "checkpoint" and changes to constraints of a given class that are before the checkpoint. Advancing the checkpoint throws away tracked changes.

An instance of this class is owned by each update tracker of ModelStorage.

Definition at line 81 of file atomic_constraint_storage.h.

Constructor & Destructor Documentation

◆ Diff()

template<typename ConstraintData >
operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Diff::Diff ( const AtomicConstraintStorage< ConstraintData > & storage)
inlineexplicit

Definition at line 82 of file atomic_constraint_storage.h.

Member Data Documentation

◆ checkpoint

template<typename ConstraintData >
IdType operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Diff::checkpoint {0}

Definition at line 85 of file atomic_constraint_storage.h.

◆ deleted_constraints

template<typename ConstraintData >
absl::flat_hash_set<IdType> operations_research::math_opt::AtomicConstraintStorage< ConstraintData >::Diff::deleted_constraints

Definition at line 86 of file atomic_constraint_storage.h.


The documentation for this struct was generated from the following file: