OR-Tools  9.1
callback_validator.cc File Reference

Go to the source code of this file.

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 
namespace  operations_research::math_opt
 

Macros

#define RETURN_IF_SCALAR(stat, value, option)
 

Functions

absl::Status ValidateCallbackRegistration (const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
 
absl::Status ValidateCallbackDataProto (const CallbackDataProto &cb_data, const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
 
absl::Status ValidateCallbackResultProto (const CallbackResultProto &callback_result, const CallbackEventProto callback_event, const CallbackRegistrationProto &callback_registration, const ModelSummary &model_summary)
 

Macro Definition Documentation

◆ RETURN_IF_SCALAR

#define RETURN_IF_SCALAR (   stat,
  value,
  option 
)
Value:
do { \
if (stat.has_##value()) { \
RETURN_IF_ERROR(CheckScalar(static_cast<double>(stat.value()), option)) \
<< "Invalid CallbackDataProto." << #stat << "." << #value; \
} \
} while (false)
int64_t value
absl::Status CheckScalar(const double value, const DoubleOptions &options)