GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::dynamic_loader Class Reference

#include "dynamic-ld.h"

Collaboration diagram for octave::dynamic_loader:

Classes

class  shlibs_list
 

Public Member Functions

 dynamic_loader (const dynamic_loader &)=delete
 
 dynamic_loader (interpreter &interp)
 
virtual ~dynamic_loader (void)=default
 
octave_functionload_mex (const std::string &fcn_name, const std::string &file_name="", bool relative=false)
 
octave_functionload_oct (const std::string &fcn_name, const std::string &file_name="", bool relative=false)
 
dynamic_loaderoperator= (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
 
interpreterm_interpreter
 
shlibs_list m_loaded_shlibs
 

Detailed Description

Definition at line 42 of file dynamic-ld.h.

Constructor & Destructor Documentation

◆ dynamic_loader() [1/2]

octave::dynamic_loader::dynamic_loader ( interpreter interp)
inline

Definition at line 82 of file dynamic-ld.h.

◆ dynamic_loader() [2/2]

octave::dynamic_loader::dynamic_loader ( const dynamic_loader )
delete

◆ ~dynamic_loader()

virtual octave::dynamic_loader::~dynamic_loader ( void  )
virtualdefault

Member Function Documentation

◆ clear()

◆ clear_function()

void octave::dynamic_loader::clear_function ( const std::string &  fcn_name)
private

◆ load_mex()

◆ load_oct()

◆ mex_f77_mangler()

std::string octave::dynamic_loader::mex_f77_mangler ( const std::string &  name)
staticprivate

Definition at line 311 of file dynamic-ld.cc.

References F77_FUNC(), and STRINGIFY.

Referenced by load_mex().

◆ mex_mangler()

std::string octave::dynamic_loader::mex_mangler ( const std::string &  name)
staticprivate

Definition at line 299 of file dynamic-ld.cc.

Referenced by load_mex().

◆ mex_uscore_mangler()

std::string octave::dynamic_loader::mex_uscore_mangler ( const std::string &  name)
staticprivate

Definition at line 305 of file dynamic-ld.cc.

Referenced by load_mex().

◆ name_mangler()

std::string octave::dynamic_loader::name_mangler ( const std::string &  name)
staticprivate

Definition at line 287 of file dynamic-ld.cc.

References name.

Referenced by load_oct().

◆ name_uscore_mangler()

std::string octave::dynamic_loader::name_uscore_mangler ( const std::string &  name)
staticprivate

Definition at line 293 of file dynamic-ld.cc.

References name.

Referenced by load_oct().

◆ operator=()

dynamic_loader& octave::dynamic_loader::operator= ( const dynamic_loader )
delete

◆ remove_mex()

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().

◆ remove_oct()

bool octave::dynamic_loader::remove_oct ( const std::string &  fcn_name,
dynamic_library shl 
)

Member Data Documentation

◆ m_doing_load

bool octave::dynamic_loader::m_doing_load
private

Definition at line 120 of file dynamic-ld.h.

Referenced by load_mex(), load_oct(), and remove_oct().

◆ m_interpreter

interpreter& octave::dynamic_loader::m_interpreter
private

Definition at line 116 of file dynamic-ld.h.

Referenced by clear(), and clear_function().

◆ m_loaded_shlibs

shlibs_list octave::dynamic_loader::m_loaded_shlibs
private

Definition at line 118 of file dynamic-ld.h.

Referenced by clear(), load_mex(), load_oct(), and remove_oct().


The documentation for this class was generated from the following files: