GNU Octave  4.2.1
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 | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
octave::dynamic_library::dynlib_rep Class Reference

#include "oct-shlib.h"

Collaboration diagram for octave::dynamic_library::dynlib_rep:
Collaboration graph
[legend]

Public Member Functions

 dynlib_rep (void)
 
virtual ~dynlib_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::sys::time time_loaded (void) const
 

Static Public Member Functions

static dynlib_repget_instance (const std::string &f, bool fake)
 
static dynlib_repnew_instance (const std::string &f)
 

Public Attributes

octave_refcount< intcount
 

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

 dynlib_rep (const std::string &f)
 
void fake_reload (void)
 

Protected Attributes

std::map< std::string, size_tfcn_names
 
std::string file
 
octave::sys::time tm_loaded
 

Static Protected Attributes

static std::map< std::string,
dynlib_rep * > 
instances
 

Detailed Description

Definition at line 46 of file oct-shlib.h.

Member Typedef Documentation

Definition at line 104 of file oct-shlib.h.

Definition at line 103 of file oct-shlib.h.

Constructor & Destructor Documentation

octave::dynamic_library::dynlib_rep::dynlib_rep ( void  )
inline

Definition at line 50 of file oct-shlib.h.

octave::dynamic_library::dynlib_rep::dynlib_rep ( const std::string f)
protected

Definition at line 66 of file oct-shlib.cc.

References f, file, instances, and is_out_of_date().

virtual octave::dynamic_library::dynlib_rep::~dynlib_rep ( void  )
inlinevirtual

Definition at line 59 of file oct-shlib.h.

References file.

Member Function Documentation

void octave::dynamic_library::dynlib_rep::add_fcn_name ( const std::string name)

Definition at line 118 of file oct-shlib.cc.

References p.

void octave::dynamic_library::dynlib_rep::do_close_hook ( dynamic_library::close_hook  cl_hook)

Definition at line 145 of file oct-shlib.cc.

void octave::dynamic_library::dynlib_rep::fake_reload ( void  )
protected
std::string octave::dynamic_library::dynlib_rep::file_name ( void  ) const
inline

Definition at line 80 of file oct-shlib.h.

References file.

dynamic_library::dynlib_rep * octave::dynamic_library::dynlib_rep::get_instance ( const std::string f,
bool  fake 
)
static

Definition at line 100 of file oct-shlib.cc.

References count, fake_reload(), p, and retval.

virtual bool octave::dynamic_library::dynlib_rep::is_open ( void  ) const
inlinevirtual

Definition at line 64 of file oct-shlib.h.

bool octave::dynamic_library::dynlib_rep::is_out_of_date ( void  ) const

Definition at line 78 of file oct-shlib.cc.

References file, fs, and octave::sys::base_file_stat::is_newer().

Referenced by dynlib_rep().

dynamic_library::dynlib_rep * octave::dynamic_library::dynlib_rep::new_instance ( const std::string f)
static

Definition at line 517 of file oct-shlib.cc.

size_t octave::dynamic_library::dynlib_rep::num_fcn_names ( void  ) const
inline

Definition at line 83 of file oct-shlib.h.

bool octave::dynamic_library::dynlib_rep::remove_fcn_name ( const std::string fcn_name)

Definition at line 129 of file oct-shlib.cc.

References p, and retval.

virtual void* octave::dynamic_library::dynlib_rep::search ( const std::string ,
name_mangler  = 0 
)
inlinevirtual

Definition at line 67 of file oct-shlib.h.

octave::sys::time octave::dynamic_library::dynlib_rep::time_loaded ( void  ) const
inline

Definition at line 77 of file oct-shlib.h.

Member Data Documentation

octave_refcount<int> octave::dynamic_library::dynlib_rep::count

Definition at line 93 of file oct-shlib.h.

Referenced by get_instance(), and octave::dynamic_library::operator=().

std::map<std::string, size_t> octave::dynamic_library::dynlib_rep::fcn_names
protected

Definition at line 106 of file oct-shlib.h.

std::string octave::dynamic_library::dynlib_rep::file
protected

Definition at line 99 of file oct-shlib.h.

Referenced by dynlib_rep().

std::map< std::string, dynamic_library::dynlib_rep * > octave::dynamic_library::dynlib_rep::instances
staticprotected

Definition at line 108 of file oct-shlib.h.

Referenced by dynlib_rep().

octave::sys::time octave::dynamic_library::dynlib_rep::tm_loaded
protected

Definition at line 100 of file oct-shlib.h.


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