OR-Tools  9.3
CppBridge

Detailed Description

This class performs various C++ initialization.

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

Definition at line 83 of file init.h.

Static Public Member Functions

static void InitLogging (const std::string &program_name)
 Initialize the C++ logging layer. More...
 
static void ShutdownLogging ()
 Shutdown the C++ logging layer. More...
 
static void SetFlags (const CppFlags &flags)
 Sets all the C++ flags contained in the CppFlags structure. More...
 
static bool LoadGurobiSharedLibrary (const std::string &full_library_path)
 Load the gurobi shared library. More...
 
static void DeleteByteArray (uint8_t *buffer)
 Delete a temporary C++ byte array. More...
 

Member Function Documentation

◆ DeleteByteArray()

static void DeleteByteArray ( uint8_t *  buffer)
inlinestatic

Delete a temporary C++ byte array.

Definition at line 131 of file init.h.

◆ InitLogging()

static void InitLogging ( const std::string &  program_name)
inlinestatic

Initialize the C++ logging layer.

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

Definition at line 90 of file init.h.

◆ LoadGurobiSharedLibrary()

static bool LoadGurobiSharedLibrary ( const std::string &  full_library_path)
inlinestatic

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 124 of file init.h.

◆ SetFlags()

static void SetFlags ( const CppFlags flags)
inlinestatic

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

Definition at line 105 of file init.h.

◆ ShutdownLogging()

static void ShutdownLogging ( )
inlinestatic

Shutdown the C++ logging layer.

This can be called to shutdown the C++ logging layer from OR-Tools. It should only be called once.

Definition at line 100 of file init.h.


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