Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes

octave_dynamic_loader Class Reference

#include "dynamic-ld.h"

Collaboration diagram for octave_dynamic_loader:
Collaboration graph
[legend]

List of all members.

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   )  [inline, protected]

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

Referenced by instance_ok().

virtual octave_dynamic_loader::~octave_dynamic_loader ( void   )  [inline, virtual]

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   )  [inline, static, private]

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   )  [static, private]
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 532 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 523 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  )  [static, protected]

Definition at line 579 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  )  [static, protected]

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

Referenced by do_load_mex().

std::string octave_dynamic_loader::mex_uscore_mangler ( const std::string &  name  )  [static, protected]

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

Referenced by do_load_mex().

std::string octave_dynamic_loader::name_mangler ( const std::string &  name  )  [static, protected]

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

Referenced by do_load_oct().

std::string octave_dynamic_loader::name_uscore_mangler ( const std::string &  name  )  [static, protected]

Definition at line 561 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 548 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 541 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 [static, private]

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

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

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:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines