r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
utl::SharedLib Struct Reference

Handle to a dynamic library with RAII. More...

#include <PluginLoader.hpp>

+ Collaboration diagram for utl::SharedLib:

Public Member Functions

 SharedLib (const LibHandle h=nullptr)
 
 ~SharedLib ()
 
 SharedLib (const SharedLib &)=delete
 
SharedLiboperator= (const SharedLib &)=delete
 
 SharedLib (SharedLib &&other) noexcept
 
SharedLiboperator= (SharedLib &&other) noexcept
 
void close ()
 
 operator bool () const
 

Public Attributes

LibHandle handle = nullptr
 

Detailed Description

Handle to a dynamic library with RAII.

Definition at line 42 of file PluginLoader.hpp.

Constructor & Destructor Documentation

◆ SharedLib() [1/3]

utl::SharedLib::SharedLib ( const LibHandle h = nullptr)
inlineexplicit

Definition at line 46 of file PluginLoader.hpp.

◆ ~SharedLib()

utl::SharedLib::~SharedLib ( )
inline

Definition at line 47 of file PluginLoader.hpp.

References close().

+ Here is the call graph for this function:

◆ SharedLib() [2/3]

utl::SharedLib::SharedLib ( const SharedLib & )
delete

◆ SharedLib() [3/3]

utl::SharedLib::SharedLib ( SharedLib && other)
inlinenoexcept

Definition at line 51 of file PluginLoader.hpp.

Member Function Documentation

◆ close()

void utl::SharedLib::close ( )
inline

Definition at line 63 of file PluginLoader.hpp.

References handle.

Referenced by operator=(), and ~SharedLib().

+ Here is the caller graph for this function:

◆ operator bool()

utl::SharedLib::operator bool ( ) const
inlineexplicit

Definition at line 75 of file PluginLoader.hpp.

References handle.

◆ operator=() [1/2]

SharedLib & utl::SharedLib::operator= ( const SharedLib & )
delete

◆ operator=() [2/2]

SharedLib & utl::SharedLib::operator= ( SharedLib && other)
inlinenoexcept

Definition at line 52 of file PluginLoader.hpp.

References close(), and handle.

+ Here is the call graph for this function:

Member Data Documentation

◆ handle

LibHandle utl::SharedLib::handle = nullptr

Definition at line 44 of file PluginLoader.hpp.

Referenced by close(), utl::PluginLoader::getEntryPoint(), operator bool(), and operator=().


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