Google OR-Tools v9.12
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 82 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 119 of file init.h.

◆ InitLogging()

void operations_research::CppBridge::InitLogging ( const std::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 25 of file init.cc.

◆ LoadGurobiSharedLibrary()

bool operations_research::CppBridge::LoadGurobiSharedLibrary ( const std::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 41 of file init.cc.

◆ SetFlags()

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

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

Definition at line 30 of file init.cc.

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


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