Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::CppBridge Class Reference

#include <init.h>

Static Public Member Functions

static void InitLogging (const std::string &usage)
 
static void ShutdownLogging ()
 
static void SetFlags (const CppFlags &flags)
 
static bool LoadGurobiSharedLibrary (const std::string &full_library_path)
 
static void DeleteByteArray (uint8_t *buffer)
 

Detailed Description

This class performs various C++ initialization.

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

Definition at line 93 of file init.h.

Member Function Documentation

◆ DeleteByteArray()

static void operations_research::CppBridge::DeleteByteArray ( uint8_t * buffer)
inlinestatic

Delete a temporary C++ byte array.

Definition at line 145 of file init.h.

◆ InitLogging()

static void operations_research::CppBridge::InitLogging ( const std::string & usage)
inlinestatic

Initialize the C++ logging layer.

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

Definition at line 100 of file init.h.

◆ LoadGurobiSharedLibrary()

static bool operations_research::CppBridge::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 138 of file init.h.

◆ SetFlags()

static void operations_research::CppBridge::SetFlags ( const CppFlags & flags)
inlinestatic

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

Definition at line 118 of file init.h.

◆ ShutdownLogging()

static void operations_research::CppBridge::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.

Deprecated: this is a no-op.

Definition at line 113 of file init.h.


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