Class CppBridge
java.lang.Object
com.google.ortools.init.CppBridge
This class performs various C++ initialization.
It is meant to be used once at the start of a program.
It is meant to be used once at the start of a program.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
protected void
finalize()
protected static long
static void
initLogging
(String usage) Initialize the C++ logging layer.
This must be called once before any other library from OR-Tools are used.static boolean
loadGurobiSharedLibrary
(String full_library_path) Load the gurobi shared library.
This is necessary if the library is installed in a non canonical
directory, or if for any reason, it is not found.
You need to pass the full path, including the shared library file.
It returns true if the library was found and correctly loaded.static void
Sets all the C++ flags contained in the CppFlags structure.static void
Shutdown the C++ logging layer.
This can be called to shutdown the C++ logging layer from OR-Tools.
It should only be called once.
Deprecated: this is a no-op.protected static long
swigRelease
(CppBridge obj)
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
CppBridge
protected CppBridge(long cPtr, boolean cMemoryOwn) -
CppBridge
public CppBridge()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
public void delete() -
initLogging
Initialize the C++ logging layer.
This must be called once before any other library from OR-Tools are used. -
shutdownLogging
public static void shutdownLogging()Shutdown the C++ logging layer.
This can be called to shutdown the C++ logging layer from OR-Tools.
It should only be called once.
Deprecated: this is a no-op. -
setFlags
Sets all the C++ flags contained in the CppFlags structure.
-