#include "dynamic-ld.h"
Classes | |
class | shlibs_list |
Public Member Functions | |
dynamic_loader (const dynamic_loader &)=delete | |
dynamic_loader (interpreter &interp) | |
virtual | ~dynamic_loader (void)=default |
octave_function * | load_mex (const std::string &fcn_name, const std::string &file_name="", bool relative=false) |
octave_function * | load_oct (const std::string &fcn_name, const std::string &file_name="", bool relative=false) |
dynamic_loader & | operator= (const dynamic_loader &)=delete |
bool | remove_mex (const std::string &fcn_name, dynamic_library &shl) |
bool | remove_oct (const std::string &fcn_name, dynamic_library &shl) |
Private Member Functions | |
void | clear (dynamic_library &oct_file) |
void | clear_function (const std::string &fcn_name) |
Static Private Member Functions | |
static std::string | mex_f77_mangler (const std::string &name) |
static std::string | mex_mangler (const std::string &name) |
static std::string | mex_uscore_mangler (const std::string &name) |
static std::string | name_mangler (const std::string &name) |
static std::string | name_uscore_mangler (const std::string &name) |
static void * | try_load_mex (dynamic_library &mex_file, const std::string &fcn_name, bool &have_fmex) |
Private Attributes | |
bool | m_doing_load |
interpreter & | m_interpreter |
shlibs_list | m_loaded_shlibs |
Definition at line 42 of file dynamic-ld.h.
|
inline |
Definition at line 82 of file dynamic-ld.h.
|
delete |
|
virtualdefault |
|
private |
Definition at line 120 of file dynamic-ld.cc.
References symbol_table::clear_dld_function(), clear_function(), dynamic_library::file_name(), interpreter::get_symbol_table(), m_interpreter, m_loaded_shlibs, dynamic_library::number_of_functions_loaded(), dynamic_loader::shlibs_list::remove(), and warning_with_id().
Referenced by load_mex(), and load_oct().
|
private |
Definition at line 106 of file dynamic-ld.cc.
References symbol_table::clear_dld_function(), interpreter::get_symbol_table(), m_interpreter, and warning_with_id().
Referenced by clear().
octave_function * dynamic_loader::load_mex | ( | const std::string & | fcn_name, |
const std::string & | file_name = "" , |
||
bool | relative = false |
||
) |
Definition at line 229 of file dynamic-ld.cc.
References dynamic_loader::shlibs_list::append(), clear(), error(), dynamic_loader::shlibs_list::find_file(), dynamic_library::is_out_of_date(), m_doing_load, m_loaded_shlibs, dynamic_library::open(), dynamic_library::search(), and try_load_mex().
Referenced by load_fcn_from_file().
octave_function * dynamic_loader::load_oct | ( | const std::string & | fcn_name, |
const std::string & | file_name = "" , |
||
bool | relative = false |
||
) |
Definition at line 149 of file dynamic-ld.cc.
References dynamic_loader::shlibs_list::append(), clear(), error(), f, dynamic_loader::shlibs_list::find_file(), dynamic_library::is_out_of_date(), m_doing_load, m_loaded_shlibs, name_mangler(), name_uscore_mangler(), dynamic_library::open(), and dynamic_library::search().
Referenced by load_fcn_from_file().
|
staticprivate |
Definition at line 319 of file dynamic-ld.cc.
References F77_FUNC(), and STRINGIFY.
Referenced by try_load_mex().
|
staticprivate |
Definition at line 307 of file dynamic-ld.cc.
Referenced by try_load_mex().
|
staticprivate |
Definition at line 313 of file dynamic-ld.cc.
Referenced by try_load_mex().
|
staticprivate |
Definition at line 295 of file dynamic-ld.cc.
Referenced by load_oct().
|
staticprivate |
Definition at line 301 of file dynamic-ld.cc.
Referenced by load_oct().
|
delete |
bool dynamic_loader::remove_mex | ( | const std::string & | fcn_name, |
dynamic_library & | shl | ||
) |
Definition at line 287 of file dynamic-ld.cc.
References remove_oct().
bool dynamic_loader::remove_oct | ( | const std::string & | fcn_name, |
dynamic_library & | shl | ||
) |
Definition at line 267 of file dynamic-ld.cc.
References m_doing_load, m_loaded_shlibs, dynamic_library::number_of_functions_loaded(), dynamic_library::remove(), and dynamic_loader::shlibs_list::remove().
Referenced by remove_mex().
|
staticprivate |
Definition at line 199 of file dynamic-ld.cc.
References mex_f77_mangler(), mex_mangler(), mex_uscore_mangler(), and dynamic_library::search().
Referenced by load_mex().
|
private |
Definition at line 120 of file dynamic-ld.h.
Referenced by load_mex(), load_oct(), and remove_oct().
|
private |
Definition at line 116 of file dynamic-ld.h.
Referenced by clear(), and clear_function().
|
private |
Definition at line 118 of file dynamic-ld.h.
Referenced by clear(), load_mex(), load_oct(), and remove_oct().