Reference counting handle to dynamically linkable executable module.
More...
#include <eagine/dynamic_library.hpp>
Reference counting handle to dynamically linkable executable module.
◆ shared_executable_module() [1/3]
eagine::shared_executable_module::shared_executable_module |
( |
| ) |
|
|
defaultnoexcept |
Default constructor.
- Postcondition
- !is_open()
◆ shared_executable_module() [2/3]
eagine::shared_executable_module::shared_executable_module |
( |
nothing_t |
| ) |
|
|
inline |
Constructor which opens the current executable as a module.
- See also
- open_self
◆ shared_executable_module() [3/3]
eagine::shared_executable_module::shared_executable_module |
( |
string_view |
filename | ) |
|
|
inline |
Construction which tries to open executable module with specified filename.
- See also
- open
◆ exports()
auto eagine::shared_executable_module::exports |
( |
string_view |
name | ) |
const -> bool |
|
inlinenoexcept |
Tests if this executable module exports the specified symbol.
- See also
- is_open
-
find
◆ find()
template<typename Signature >
auto eagine::shared_executable_module::find |
( |
string_view |
name | ) |
const -> std::enable_if_t<
std::is_function_v<std::remove_pointer_t<Signature>>,
callable_ref<std::remove_pointer_t<Signature>>> |
|
inlinenoexcept |
Finds and returns pointer to exported function with the specified name.
- See also
- is_open
-
exports
◆ is_open()
auto eagine::shared_executable_module::is_open |
( |
| ) |
const -> bool |
|
inlinenoexcept |
◆ open()
auto eagine::shared_executable_module::open |
( |
string_view |
filename | ) |
-> auto& |
|
inline |
Opens the specified executable module. Closes the previous one, if any.
- See also
- open_self
-
is_open
◆ open_self()
auto eagine::shared_executable_module::open_self |
( |
| ) |
-> auto& |
|
inline |
Opens the current executable module. Closes the previous one, if any.
- See also
- open
-
is_open
◆ operator bool()
eagine::shared_executable_module::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
Indicates if this executable module is open.
- See also
- is_open
The documentation for this class was generated from the following file: