|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
RAII style class to load, query and unload dynamic libraries. More...
#include <rexlib/core/system/dynamic_library.hpp>
Public Member Functions | |
| dynamic_library () noexcept | |
| Construct an empty dynamic_library object. | |
| dynamic_library (const char *filename) | |
| Construct a new dynamic_library object from a file. | |
| dynamic_library (const std::string &filename) | |
| Construct a new dynamic_library object from a file. | |
| dynamic_library (const dynamic_library &other)=delete | |
| dynamic_library (dynamic_library &&other) noexcept | |
| dynamic_library & | operator= (const dynamic_library &other)=delete |
| dynamic_library & | operator= (dynamic_library &&other) noexcept |
| void | swap (dynamic_library &other) noexcept |
| bool | is_open () const noexcept |
| Check if a dynamic library is loaded. | |
| void | open (const char *filename) |
| Loads a dynamic library. | |
| void | open (const std::string &filename) |
| Loads a dynamic library. | |
| void | close () noexcept |
| Frees the stored dynamic library, if any. | |
| void * | get_symbol (const char *name) const noexcept |
| Get the address of a symbol. | |
| void * | get_symbol (const std::string &name) const noexcept |
| Get the address of a symbol. | |
Static Public Member Functions | |
| static std::string | query_symbol_filename (const void *symbol) |
| Obtain the filename to the dynamic library from where the given symbol has been loaded. | |
RAII style class to load, query and unload dynamic libraries.
Construct a new dynamic_library object from a file.
| filename | Path of the dynamic library file |
|
explicit |
Construct a new dynamic_library object from a file.
| filename | Path of the dynamic library file |
Get the address of a symbol.
| name | Name of the symbol |
Get the address of a symbol.
| name | Name of the symbol |
|
noexcept |
Check if a dynamic library is loaded.
Loads a dynamic library.
| filename | Path to the dynamic library |
Loads a dynamic library.
| filename | Path to the dynamic library |
Obtain the filename to the dynamic library from where the given symbol has been loaded.
| symbol | The symbol to be looked up. |