9package com.google.ortools.init;
17 private transient long swigCPtr;
20 protected CppBridge(
long cPtr,
boolean cMemoryOwn) {
26 return (obj ==
null) ? 0 : obj.swigCPtr;
33 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
35 obj.swigCMemOwn =
false;
41 @SuppressWarnings({
"deprecation",
"removal"})
50 mainJNI.delete_CppBridge(swigCPtr);
62 mainJNI.CppBridge_initLogging(usage);
74 mainJNI.CppBridge_shutdownLogging();
93 return mainJNI.CppBridge_loadGurobiSharedLibrary(full_library_path);
97 this(mainJNI.new_CppBridge(),
true);