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

#include "oct-shlib.h"

Collaboration diagram for octave::dynamic_library::dynlib_rep:

Public Member Functions

 dynlib_rep (void)
 
virtual ~dynlib_rep (void)
 
void add_fcn_name (const std::string &)
 
void clear_fcn_names (void)
 
std::string file_name (void) const
 
std::list< std::stringfunction_names (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=nullptr)
 
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

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

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

Protected Attributes

std::map< std::string, size_tfcn_names
 
std::string file
 
bool search_all_loaded
 
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

◆ fcn_names_const_iterator

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

◆ fcn_names_iterator

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

Constructor & Destructor Documentation

◆ dynlib_rep() [1/2]

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

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

◆ dynlib_rep() [2/2]

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

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

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

◆ ~dynlib_rep()

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

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

References file.

Member Function Documentation

◆ add_fcn_name()

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

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

References name, and p.

◆ clear_fcn_names()

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

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

◆ fake_reload()

void octave::dynamic_library::dynlib_rep::fake_reload ( void  )
protected

◆ file_name()

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

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

References file.

◆ function_names()

std::list< std::string > octave::dynamic_library::dynlib_rep::function_names ( void  ) const

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

References p, and retval.

◆ get_instance()

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

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

References f, p, and retval.

◆ is_open()

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

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

◆ is_out_of_date()

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

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

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

Referenced by dynlib_rep().

◆ new_instance()

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

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

References f.

◆ num_fcn_names()

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

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

◆ remove_fcn_name()

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

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

References p, and retval.

◆ search()

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

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

◆ time_loaded()

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

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

Member Data Documentation

◆ count

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

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

Referenced by octave::dynamic_library::operator=().

◆ fcn_names

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

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

◆ file

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

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

Referenced by dynlib_rep().

◆ instances

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

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

Referenced by dynlib_rep().

◆ search_all_loaded

bool octave::dynamic_library::dynlib_rep::search_all_loaded
protected

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

◆ tm_loaded

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

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


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