#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) |
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 octave::symbol_table::clear_dld_function(), clear_function(), octave::dynamic_library::file_name(), octave::interpreter::get_symbol_table(), m_interpreter, m_loaded_shlibs, octave::dynamic_library::number_of_functions_loaded(), octave::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 octave::symbol_table::clear_dld_function(), octave::interpreter::get_symbol_table(), m_interpreter, and warning_with_id().
Referenced by clear().
octave_function * octave::dynamic_loader::load_mex | ( | const std::string & | fcn_name, |
const std::string & | file_name = "" , |
||
bool | relative = false |
||
) |
Definition at line 203 of file dynamic-ld.cc.
References octave::dynamic_loader::shlibs_list::append(), clear(), error(), octave::dynamic_loader::shlibs_list::find_file(), octave::dynamic_library::is_out_of_date(), m_doing_load, m_loaded_shlibs, mex_f77_mangler(), mex_mangler(), mex_uscore_mangler(), octave::dynamic_library::open(), octave::action_container::protect_var(), retval, and octave::dynamic_library::search().
Referenced by octave::load_fcn_from_file().
octave_function * octave::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 octave::dynamic_loader::shlibs_list::append(), clear(), error(), octave::f(), octave::dynamic_loader::shlibs_list::find_file(), octave::dynamic_library::is_out_of_date(), m_doing_load, m_loaded_shlibs, name_mangler(), name_uscore_mangler(), octave::dynamic_library::open(), octave::action_container::protect_var(), retval, and octave::dynamic_library::search().
Referenced by octave::load_fcn_from_file().
|
staticprivate |
Definition at line 311 of file dynamic-ld.cc.
References F77_FUNC(), and STRINGIFY.
Referenced by load_mex().
|
staticprivate |
Definition at line 299 of file dynamic-ld.cc.
Referenced by load_mex().
|
staticprivate |
Definition at line 305 of file dynamic-ld.cc.
Referenced by load_mex().
|
staticprivate |
|
staticprivate |
|
delete |
bool octave::dynamic_loader::remove_mex | ( | const std::string & | fcn_name, |
dynamic_library & | shl | ||
) |
Definition at line 279 of file dynamic-ld.cc.
References remove_oct().
bool octave::dynamic_loader::remove_oct | ( | const std::string & | fcn_name, |
dynamic_library & | shl | ||
) |
Definition at line 259 of file dynamic-ld.cc.
References m_doing_load, m_loaded_shlibs, octave::dynamic_library::number_of_functions_loaded(), octave::dynamic_library::remove(), octave::dynamic_loader::shlibs_list::remove(), and retval.
Referenced by octave_dld_function::~octave_dld_function(), and remove_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().