Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.init.CppBridge Class Reference

Public Member Functions

synchronized void delete ()
 
 CppBridge ()
 

Static Public Member Functions

static void initLogging (String usage)
 
static void shutdownLogging ()
 
static void setFlags (CppFlags flags)
 
static boolean logGurobiSharedLibrary (String full_library_path)
 

Protected Member Functions

 CppBridge (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (CppBridge obj)
 
static long swigRelease (CppBridge obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

This class performs various C++ initialization.

It is meant to be used once at the start of a program.

Definition at line 16 of file CppBridge.java.

Constructor & Destructor Documentation

◆ CppBridge() [1/2]

com.google.ortools.init.CppBridge.CppBridge ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 20 of file CppBridge.java.

◆ CppBridge() [2/2]

com.google.ortools.init.CppBridge.CppBridge ( )

Definition at line 96 of file CppBridge.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.init.CppBridge.delete ( )

Definition at line 46 of file CppBridge.java.

◆ finalize()

void com.google.ortools.init.CppBridge.finalize ( )
protected

Definition at line 42 of file CppBridge.java.

◆ getCPtr()

static long com.google.ortools.init.CppBridge.getCPtr ( CppBridge obj)
staticprotected

Definition at line 25 of file CppBridge.java.

◆ initLogging()

static void com.google.ortools.init.CppBridge.initLogging ( String usage)
static

Initialize the C++ logging layer.

This must be called once before any other library from OR-Tools are used.

Definition at line 61 of file CppBridge.java.

◆ logGurobiSharedLibrary()

static boolean com.google.ortools.init.CppBridge.logGurobiSharedLibrary ( String full_library_path)
static

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.

Definition at line 92 of file CppBridge.java.

◆ setFlags()

static void com.google.ortools.init.CppBridge.setFlags ( CppFlags flags)
static

Sets all the C++ flags contained in the CppFlags structure.

Definition at line 80 of file CppBridge.java.

◆ shutdownLogging()

static void com.google.ortools.init.CppBridge.shutdownLogging ( )
static

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.

Definition at line 73 of file CppBridge.java.

◆ swigRelease()

static long com.google.ortools.init.CppBridge.swigRelease ( CppBridge obj)
staticprotected

Definition at line 29 of file CppBridge.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.init.CppBridge.swigCMemOwn
protected

Definition at line 18 of file CppBridge.java.


The documentation for this class was generated from the following file: