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

#include "oct-shlib.h"

Public Member Functions

 dynlib_rep ()
 
virtual ~dynlib_rep ()
 
void add_fcn_name (const std::string &)
 
void clear_fcn_names ()
 
std::string file_name () const
 
std::list< std::string > function_names () const
 
virtual bool is_open () const
 
bool is_out_of_date () const
 
std::size_t num_fcn_names () const
 
bool remove_fcn_name (const std::string &)
 
virtual void * search (const std::string &, const name_mangler &=name_mangler())
 
sys::time time_loaded () 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, std::size_t >::const_iterator fcn_names_const_iterator
 
typedef std::map< std::string, std::size_t >::iterator fcn_names_iterator
 

Protected Member Functions

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

Protected Attributes

std::map< std::string, std::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 48 of file oct-shlib.h.

Member Typedef Documentation

◆ fcn_names_const_iterator

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

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

◆ fcn_names_iterator

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

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

Constructor & Destructor Documentation

◆ dynlib_rep() [1/2]

dynamic_library::dynlib_rep::dynlib_rep ( )
inline

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

◆ dynlib_rep() [2/2]

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

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

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

◆ ~dynlib_rep()

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

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

Member Function Documentation

◆ add_fcn_name()

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

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

◆ clear_fcn_names()

void dynamic_library::dynlib_rep::clear_fcn_names ( )
inline

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

◆ fake_reload()

void dynamic_library::dynlib_rep::fake_reload ( )
protected

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

Referenced by get_instance().

◆ file_name()

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

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

◆ function_names()

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

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

◆ get_instance()

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

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

References f, fake_reload(), and m_count.

◆ is_open()

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

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

◆ is_out_of_date()

bool dynamic_library::dynlib_rep::is_out_of_date ( ) const

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

Referenced by dynlib_rep().

◆ new_instance()

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

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

References f.

◆ num_fcn_names()

std::size_t dynamic_library::dynlib_rep::num_fcn_names ( ) const
inline

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

◆ remove_fcn_name()

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

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

◆ search()

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

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

◆ time_loaded()

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

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

Member Data Documentation

◆ m_count

refcount<octave_idx_type> dynamic_library::dynlib_rep::m_count

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

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

◆ m_fcn_names

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

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

◆ m_file

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

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

Referenced by dynlib_rep().

◆ m_search_all_loaded

bool dynamic_library::dynlib_rep::m_search_all_loaded
protected

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

◆ m_time_loaded

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

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

◆ s_instances

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

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

Referenced by dynlib_rep().


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