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

#include <dynamic_library.h>

Public Member Functions

 DynamicLibrary ()
 
 ~DynamicLibrary ()
 
bool TryToLoad (const std::string &library_name)
 
bool LibraryIsLoaded () const
 
template<typename T >
std::function< T > GetFunction (const char *function_name)
 
template<typename T >
std::function< T > GetFunction (const std::string &function_name)
 
template<typename T >
void GetFunction (std::function< T > *function, const char *function_name)
 
template<typename T >
void GetFunction (std::function< T > *function, const std::string function_name)
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 32 of file dynamic_library.h.

Constructor & Destructor Documentation

◆ DynamicLibrary()

DynamicLibrary::DynamicLibrary ( )
inline

Definition at line 34 of file dynamic_library.h.

◆ ~DynamicLibrary()

DynamicLibrary::~DynamicLibrary ( )
inline

Definition at line 36 of file dynamic_library.h.

Member Function Documentation

◆ GetFunction() [1/4]

template<typename T >
std::function< T > DynamicLibrary::GetFunction ( const char * function_name)
inline

Definition at line 61 of file dynamic_library.h.

◆ GetFunction() [2/4]

template<typename T >
std::function< T > DynamicLibrary::GetFunction ( const std::string & function_name)
inline

Definition at line 78 of file dynamic_library.h.

◆ GetFunction() [3/4]

template<typename T >
void DynamicLibrary::GetFunction ( std::function< T > * function,
const char * function_name )
inline

Definition at line 83 of file dynamic_library.h.

◆ GetFunction() [4/4]

template<typename T >
void DynamicLibrary::GetFunction ( std::function< T > * function,
const std::string function_name )
inline

Definition at line 88 of file dynamic_library.h.

◆ LibraryIsLoaded()

bool DynamicLibrary::LibraryIsLoaded ( ) const
inline

Definition at line 58 of file dynamic_library.h.

◆ TryToLoad()

bool DynamicLibrary::TryToLoad ( const std::string & library_name)
inline

Definition at line 48 of file dynamic_library.h.


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