#include "oct-shlib.h"
Public Member Functions | |
shlib_rep (void) | |
virtual | ~shlib_rep (void) |
void | add_fcn_name (const std::string &) |
void | do_close_hook (close_hook cl_hook) |
std::string | file_name (void) const |
virtual bool | is_open (void) const |
bool | is_out_of_date (void) const |
size_t | num_fcn_names (void) const |
bool | remove_fcn_name (const std::string &) |
virtual void * | search (const std::string &, name_mangler=0) |
octave_time | time_loaded (void) const |
Static Public Member Functions | |
static shlib_rep * | get_instance (const std::string &f, bool fake) |
static shlib_rep * | new_instance (const std::string &f) |
Public Attributes | |
octave_refcount< int > | count |
Protected Types | |
typedef std::map< std::string, size_t >::const_iterator | fcn_names_const_iterator |
typedef std::map< std::string, size_t >::iterator | fcn_names_iterator |
Protected Member Functions | |
shlib_rep (const std::string &f) | |
void | fake_reload (void) |
Protected Attributes | |
std::map< std::string, size_t > | fcn_names |
std::string | file |
octave_time | tm_loaded |
Static Protected Attributes | |
static std::map< std::string, shlib_rep * > | instances |
Definition at line 42 of file oct-shlib.h.
typedef std::map<std::string, size_t>::const_iterator octave_shlib::shlib_rep::fcn_names_const_iterator [protected] |
Definition at line 100 of file oct-shlib.h.
typedef std::map<std::string, size_t>::iterator octave_shlib::shlib_rep::fcn_names_iterator [protected] |
Definition at line 99 of file oct-shlib.h.
octave_shlib::shlib_rep::shlib_rep | ( | void | ) | [inline] |
Definition at line 46 of file oct-shlib.h.
Referenced by new_instance().
octave_shlib::shlib_rep::shlib_rep | ( | const std::string & | f | ) | [protected] |
Definition at line 63 of file oct-shlib.cc.
References file, instances, and is_out_of_date().
virtual octave_shlib::shlib_rep::~shlib_rep | ( | void | ) | [inline, virtual] |
Definition at line 55 of file oct-shlib.h.
void octave_shlib::shlib_rep::add_fcn_name | ( | const std::string & | name | ) |
Definition at line 114 of file oct-shlib.cc.
References fcn_names.
void octave_shlib::shlib_rep::do_close_hook | ( | octave_shlib::close_hook | cl_hook | ) |
Definition at line 141 of file oct-shlib.cc.
References fcn_names.
void octave_shlib::shlib_rep::fake_reload | ( | void | ) | [protected] |
Definition at line 82 of file oct-shlib.cc.
References file, base_file_stat::is_newer(), base_file_stat::mtime(), and tm_loaded.
Referenced by get_instance().
std::string octave_shlib::shlib_rep::file_name | ( | void | ) | const [inline] |
Definition at line 76 of file oct-shlib.h.
octave_shlib::shlib_rep * octave_shlib::shlib_rep::get_instance | ( | const std::string & | f, | |
bool | fake | |||
) | [static] |
Definition at line 96 of file oct-shlib.cc.
References count, fake_reload(), instances, and new_instance().
virtual bool octave_shlib::shlib_rep::is_open | ( | void | ) | const [inline, virtual] |
Definition at line 60 of file oct-shlib.h.
bool octave_shlib::shlib_rep::is_out_of_date | ( | void | ) | const |
Definition at line 75 of file oct-shlib.cc.
References file, base_file_stat::is_newer(), and tm_loaded.
Referenced by shlib_rep().
octave_shlib::shlib_rep * octave_shlib::shlib_rep::new_instance | ( | const std::string & | f | ) | [static] |
size_t octave_shlib::shlib_rep::num_fcn_names | ( | void | ) | const [inline] |
Definition at line 79 of file oct-shlib.h.
bool octave_shlib::shlib_rep::remove_fcn_name | ( | const std::string & | fcn_name | ) |
Definition at line 125 of file oct-shlib.cc.
References fcn_names.
virtual void* octave_shlib::shlib_rep::search | ( | const std::string & | , | |
name_mangler | = 0 | |||
) | [inline, virtual] |
Definition at line 63 of file oct-shlib.h.
octave_time octave_shlib::shlib_rep::time_loaded | ( | void | ) | const [inline] |
Definition at line 73 of file oct-shlib.h.
Definition at line 89 of file oct-shlib.h.
Referenced by get_instance(), and octave_shlib::operator=().
std::map<std::string, size_t> octave_shlib::shlib_rep::fcn_names [protected] |
Definition at line 102 of file oct-shlib.h.
Referenced by add_fcn_name(), do_close_hook(), and remove_fcn_name().
std::string octave_shlib::shlib_rep::file [protected] |
Definition at line 95 of file oct-shlib.h.
Referenced by fake_reload(), is_out_of_date(), and shlib_rep().
std::map< std::string, octave_shlib::shlib_rep * > octave_shlib::shlib_rep::instances [static, protected] |
Definition at line 104 of file oct-shlib.h.
Referenced by get_instance(), and shlib_rep().
octave_time octave_shlib::shlib_rep::tm_loaded [protected] |
Definition at line 96 of file oct-shlib.h.
Referenced by fake_reload(), and is_out_of_date().