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" 28 absl::Span<const int64_t> ids);
34 const absl::Span<const int64_t> universe);
41 const absl::Span<const int64_t> universe);
46 const IdNameBiMap& universe,
47 absl::string_view ids_description,
48 absl::string_view universe_description);
52 const IdNameBiMap& second_ids,
53 absl::string_view first_description,
54 absl::string_view second_description);
69 const absl::Span<const int64_t> deleted_ids,
70 const absl::Span<const int64_t> new_ids)
71 : old_ids_(old_ids), deleted_ids_(deleted_ids), new_ids_(new_ids) {}
79 const absl::Span<const int64_t> ids)
const;
85 const absl::Span<const int64_t> ids)
const;
95 absl::Span<const int64_t> deleted_ids_;
96 absl::Span<const int64_t> new_ids_;
102 #endif // OR_TOOLS_MATH_OPT_VALIDATORS_IDS_VALIDATOR_H_ absl::Status CheckSortedIdsSubset(const absl::Span< const int64_t > ids, const absl::Span< const int64_t > universe)
IdUpdateValidator(const IdNameBiMap &old_ids, const absl::Span< const int64_t > deleted_ids, const absl::Span< const int64_t > new_ids)
absl::Status CheckIdsIdentical(absl::Span< const int64_t > first_ids, const IdNameBiMap &second_ids, absl::string_view first_description, absl::string_view second_description)
absl::Status CheckSortedIdsSubsetOfNotDeleted(const absl::Span< const int64_t > ids) const
absl::Status CheckUnsortedIdsSubset(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 CheckSortedIdsSubsetOfFinal(const absl::Span< const int64_t > ids) const
absl::Status IsValid() const
Collection of objects used to extend the Constraint Solver library.
absl::Status CheckIdsNonnegativeAndStrictlyIncreasing(absl::Span< const int64_t > ids)
absl::Status CheckIdsSubsetOfFinal(const absl::Span< const int64_t > ids) const