GNU Octave  6.2.0
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::string > function_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 &, const name_mangler &=name_mangler())
 
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< octave_idx_typem_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_t > m_fcn_names
 
std::string m_file
 
bool m_search_all_loaded
 
sys::time m_time_loaded
 

Static Protected Attributes

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

Detailed Description

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

Member Typedef Documentation

◆ fcn_names_const_iterator

typedef std::map<std::string, size_t>::const_iterator octave::dynamic_library::dynlib_rep::fcn_names_const_iterator
protected

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

◆ fcn_names_iterator

typedef std::map<std::string, size_t>::iterator octave::dynamic_library::dynlib_rep::fcn_names_iterator
protected

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

Constructor & Destructor Documentation

◆ dynlib_rep() [1/2]

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

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

◆ dynlib_rep() [2/2]

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

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

References octave::f(), is_out_of_date(), m_file, and s_instances.

◆ ~dynlib_rep()

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

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

Member Function Documentation

◆ add_fcn_name()

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

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

References name.

◆ clear_fcn_names()

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

Definition at line 97 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 86 of file oct-shlib.h.

◆ function_names()

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

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

References retval.

◆ get_instance()

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

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

References octave::f(), Array< T >::find(), and retval.

◆ is_open()

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

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

◆ is_out_of_date()

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

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

References 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 422 of file oct-shlib.cc.

References octave::f().

◆ num_fcn_names()

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

Definition at line 89 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 137 of file oct-shlib.cc.

References Array< T >::find(), and retval.

◆ search()

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

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

◆ time_loaded()

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

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

Member Data Documentation

◆ m_count

refcount<octave_idx_type> octave::dynamic_library::dynlib_rep::m_count

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

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

◆ m_fcn_names

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

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

◆ m_file

std::string octave::dynamic_library::dynlib_rep::m_file
protected

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

Referenced by dynlib_rep().

◆ m_search_all_loaded

bool octave::dynamic_library::dynlib_rep::m_search_all_loaded
protected

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

◆ m_time_loaded

sys::time octave::dynamic_library::dynlib_rep::m_time_loaded
protected

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

◆ s_instances

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

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

Referenced by dynlib_rep().


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