GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
octave_dynamic_loader Class Reference

#include "dynamic-ld.h"

Collaboration diagram for octave_dynamic_loader:
Collaboration graph
[legend]

Public Member Functions

virtual ~octave_dynamic_loader (void)

Static Public Member Functions

static octave_functionload_mex (const std::string &fcn_name, const std::string &file_name=std::string(), bool relative=false)
static octave_functionload_oct (const std::string &fcn_name, const std::string &file_name=std::string(), bool relative=false)
static bool remove_mex (const std::string &fcn_name, octave_shlib &shl)
static bool remove_oct (const std::string &fcn_name, octave_shlib &shl)

Protected Member Functions

 octave_dynamic_loader (void)

Static Protected 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 Member Functions

 octave_dynamic_loader (const octave_dynamic_loader &)
octave_functiondo_load_mex (const std::string &fcn_name, const std::string &file_name=std::string(), bool relative=false)
octave_functiondo_load_oct (const std::string &fcn_name, const std::string &file_name=std::string(), bool relative=false)
bool do_remove_mex (const std::string &fcn_name, octave_shlib &shl)
bool do_remove_oct (const std::string &fcn_name, octave_shlib &shl)
octave_dynamic_loaderoperator= (const octave_dynamic_loader &)

Static Private Member Functions

static void cleanup_instance (void)
static bool instance_ok (void)

Static Private Attributes

static bool doing_load = false
static octave_dynamic_loaderinstance = 0

Detailed Description

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

Constructor & Destructor Documentation

octave_dynamic_loader::octave_dynamic_loader ( void  )
inlineprotected

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

Referenced by instance_ok().

virtual octave_dynamic_loader::~octave_dynamic_loader ( void  )
inlinevirtual

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

octave_dynamic_loader::octave_dynamic_loader ( const octave_dynamic_loader )
private

Member Function Documentation

static void octave_dynamic_loader::cleanup_instance ( void  )
inlinestaticprivate

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

Referenced by instance_ok().

octave_function * octave_dynamic_loader::do_load_mex ( const std::string &  fcn_name,
const std::string &  file_name = std::string (),
bool  relative = false 
)
private
octave_function * octave_dynamic_loader::do_load_oct ( const std::string &  fcn_name,
const std::string &  file_name = std::string (),
bool  relative = false 
)
private
bool octave_dynamic_loader::do_remove_mex ( const std::string &  fcn_name,
octave_shlib shl 
)
private
bool octave_dynamic_loader::do_remove_oct ( const std::string &  fcn_name,
octave_shlib shl 
)
private
bool octave_dynamic_loader::instance_ok ( void  )
staticprivate
octave_function * octave_dynamic_loader::load_mex ( const std::string &  fcn_name,
const std::string &  file_name = std::string (),
bool  relative = false 
)
static

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

References do_load_mex(), instance, and instance_ok().

octave_function * octave_dynamic_loader::load_oct ( const std::string &  fcn_name,
const std::string &  file_name = std::string (),
bool  relative = false 
)
static

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

References do_load_oct(), instance, and instance_ok().

std::string octave_dynamic_loader::mex_f77_mangler ( const std::string &  name)
staticprotected

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

References F77_FUNC(), and STRINGIFY.

Referenced by do_load_mex().

std::string octave_dynamic_loader::mex_mangler ( const std::string &  name)
staticprotected

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

Referenced by do_load_mex().

std::string octave_dynamic_loader::mex_uscore_mangler ( const std::string &  name)
staticprotected

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

Referenced by do_load_mex().

std::string octave_dynamic_loader::name_mangler ( const std::string &  name)
staticprotected

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

Referenced by do_load_oct().

std::string octave_dynamic_loader::name_uscore_mangler ( const std::string &  name)
staticprotected

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

Referenced by do_load_oct().

octave_dynamic_loader& octave_dynamic_loader::operator= ( const octave_dynamic_loader )
private
bool octave_dynamic_loader::remove_mex ( const std::string &  fcn_name,
octave_shlib shl 
)
static

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

References do_remove_mex(), instance, and instance_ok().

Referenced by octave_mex_function::~octave_mex_function().

bool octave_dynamic_loader::remove_oct ( const std::string &  fcn_name,
octave_shlib shl 
)
static

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

References do_remove_oct(), instance, and instance_ok().

Referenced by octave_dld_function::~octave_dld_function().

Member Data Documentation

bool octave_dynamic_loader::doing_load = false
staticprivate

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

Referenced by do_load_mex(), do_load_oct(), do_remove_mex(), and do_remove_oct().

octave_dynamic_loader * octave_dynamic_loader::instance = 0
staticprivate

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

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


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