Ipopt Documentation  
 
Loading...
Searching...
No Matches
Ipopt::LibraryLoader Class Reference

loading of a library at runtime More...

#include <IpLibraryLoader.hpp>

+ Inheritance diagram for Ipopt::LibraryLoader:

Public Member Functions

 LibraryLoader (const std::string &libname_)
 constructor
 
 ~LibraryLoader ()
 destructor
 
void loadLibrary ()
 tries to load library
 
void unloadLibrary ()
 unload library, if loaded
 
voidloadSymbol (const std::string &symbolname)
 tries to load symbol
 
- Public Member Functions inherited from Ipopt::ReferencedObject
 ReferencedObject ()
 
virtual ~ReferencedObject ()
 
Index ReferenceCount () const
 
void AddRef (const Referencer *referencer) const
 
void ReleaseRef (const Referencer *referencer) const
 

Private Member Functions

 LibraryLoader (const LibraryLoader &)
 unimplemented copy constructor
 
LibraryLoaderoperator= (const LibraryLoader &)
 unimplemented assigment operator
 

Private Attributes

std::string libname
 
voidlibhandle
 

Detailed Description

loading of a library at runtime

wrapper around dlopen()/dlsym() and variants

Since
3.14.0

Definition at line 27 of file IpLibraryLoader.hpp.

Constructor & Destructor Documentation

◆ LibraryLoader() [1/2]

Ipopt::LibraryLoader::LibraryLoader ( const LibraryLoader )
private

unimplemented copy constructor

◆ LibraryLoader() [2/2]

Ipopt::LibraryLoader::LibraryLoader ( const std::string &  libname_)
inline

constructor

Parameters
libname_full name of library, can include path

Definition at line 40 of file IpLibraryLoader.hpp.

◆ ~LibraryLoader()

Ipopt::LibraryLoader::~LibraryLoader ( )
inline

destructor

Definition at line 48 of file IpLibraryLoader.hpp.

Member Function Documentation

◆ operator=()

LibraryLoader & Ipopt::LibraryLoader::operator= ( const LibraryLoader )
private

unimplemented assigment operator

◆ loadLibrary()

void Ipopt::LibraryLoader::loadLibrary ( )

tries to load library

◆ unloadLibrary()

void Ipopt::LibraryLoader::unloadLibrary ( )

unload library, if loaded

◆ loadSymbol()

void * Ipopt::LibraryLoader::loadSymbol ( const std::string &  symbolname)

tries to load symbol

calls loadLibrary() if no library loaded yet

Parameters
symbolnamebase name of symbol

Member Data Documentation

◆ libname

std::string Ipopt::LibraryLoader::libname
private

Definition at line 30 of file IpLibraryLoader.hpp.

◆ libhandle

void* Ipopt::LibraryLoader::libhandle
private

Definition at line 31 of file IpLibraryLoader.hpp.


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