14#ifndef OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
15#define OR_TOOLS_MATH_OPT_CPP_UPDATE_TRACKER_H_
20#include "absl/strings/string_view.h"
22#include "ortools/math_opt/model.pb.h"
23#include "ortools/math_opt/model_update.pb.h"
69 explicit UpdateTracker(
const std::shared_ptr<ModelStorage>& storage);
90 const std::weak_ptr<ModelStorage> storage_;
91 const UpdateTrackerId update_tracker_;
99 "Can't call this function after the associated model has been destroyed.";
ModelProto ExportModel() const
std::optional< ModelUpdateProto > ExportModelUpdate()
UpdateTracker(const std::shared_ptr< ModelStorage > &storage)
constexpr absl::string_view kModelIsDestroyed
Collection of objects used to extend the Constraint Solver library.