14#ifndef OR_TOOLS_MATH_OPT_VALIDATORS_IDS_VALIDATOR_H_
15#define OR_TOOLS_MATH_OPT_VALIDATORS_IDS_VALIDATOR_H_
19#include "absl/status/status.h"
20#include "absl/strings/string_view.h"
21#include "absl/types/span.h"
35 const absl::Span<const int64_t> universe);
42 const absl::Span<const int64_t> universe);
47 const IdNameBiMap& universe,
48 absl::string_view ids_description,
49 absl::string_view universe_description);
53 const IdNameBiMap& second_ids,
54 absl::string_view first_description,
55 absl::string_view second_description);
70 const absl::Span<const int64_t> deleted_ids,
71 const absl::Span<const int64_t> new_ids)
72 : old_ids_(old_ids), deleted_ids_(deleted_ids), new_ids_(new_ids) {}
81 const absl::Span<const int64_t> ids)
const;
87 const absl::Span<const int64_t> ids)
const;
97 const absl::Span<const int64_t> deleted_ids_;
98 const absl::Span<const int64_t> new_ids_;
absl::Status CheckSortedIdsSubsetOfFinal(const absl::Span< const int64_t > ids) const
absl::Status CheckIdsSubsetOfFinal(const absl::Span< const int64_t > ids) const
IdUpdateValidator(const IdNameBiMap &old_ids, const absl::Span< const int64_t > deleted_ids, const absl::Span< const int64_t > new_ids)
absl::Status CheckSortedIdsSubsetOfNotDeleted(const absl::Span< const int64_t > ids) const
absl::Status IsValid() const
absl::Status CheckUnsortedIdsSubset(const absl::Span< const int64_t > ids, const absl::Span< const int64_t > universe)
absl::Status CheckIdsRangeAndStrictlyIncreasing(absl::Span< const int64_t > ids)
absl::Status CheckSortedIdsSubset(const absl::Span< const int64_t > ids, const absl::Span< const int64_t > universe)
absl::Status CheckIdsSubset(absl::Span< const int64_t > ids, const IdNameBiMap &universe, absl::string_view ids_description, absl::string_view universe_description)
absl::Status CheckIdsIdentical(absl::Span< const int64_t > first_ids, const IdNameBiMap &second_ids, absl::string_view first_description, absl::string_view second_description)
Collection of objects used to extend the Constraint Solver library.