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

#include "oct-shlib.h"

Inheritance diagram for dynamic_library:
Collaboration diagram for dynamic_library:

Classes

class  dynlib_rep
 

Public Types

typedef std::function< std::string(const std::string &)> name_mangler
 

Public Member Functions

 dynamic_library (const dynamic_library &sl)
 
 dynamic_library (const std::string &f, bool fake=true)
 
 dynamic_library (void)
 
 ~dynamic_library (void)
 
void add (const std::string &name)
 
std::list< std::string > close (void)
 
OCTAVE_API void delete_later (void)
 
std::string file_name (void) const
 
bool is_out_of_date (void) const
 
std::size_t number_of_functions_loaded (void) const
 
void open (const std::string &f)
 
 operator bool () const
 
dynamic_libraryoperator= (const dynamic_library &sl)
 
bool operator== (const dynamic_library &sl) const
 
bool remove (const std::string &name)
 
void * search (const std::string &nm, const name_mangler &mangler=name_mangler()) const
 
sys::time time_loaded (void) const
 

Private Attributes

dynlib_repm_rep
 

Static Private Attributes

static OCTAVE_API dynlib_rep s_nil_rep
 

Detailed Description

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

Member Typedef Documentation

◆ name_mangler

typedef std::function<std::string (const std::string&)> dynamic_library::name_mangler

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

Constructor & Destructor Documentation

◆ dynamic_library() [1/3]

dynamic_library::dynamic_library ( void  )
inline

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

◆ dynamic_library() [2/3]

dynamic_library::dynamic_library ( const std::string &  f,
bool  fake = true 
)
inline

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

◆ ~dynamic_library()

dynamic_library::~dynamic_library ( void  )
inline

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

◆ dynamic_library() [3/3]

dynamic_library::dynamic_library ( const dynamic_library sl)
inline

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

Member Function Documentation

◆ add()

void dynamic_library::add ( const std::string &  name)
inline

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

◆ close()

std::list<std::string> dynamic_library::close ( void  )
inline

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

Referenced by dynamic_loader::shlibs_list::remove().

◆ delete_later()

void dynamic_library::delete_later ( void  )

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

References possibly_unreferenced_dynamic_libraries.

◆ file_name()

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

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

Referenced by dynamic_loader::clear().

◆ is_out_of_date()

bool dynamic_library::is_out_of_date ( void  ) const
inline

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

Referenced by dynamic_loader::load_mex(), and dynamic_loader::load_oct().

◆ number_of_functions_loaded()

std::size_t dynamic_library::number_of_functions_loaded ( void  ) const
inline

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

Referenced by dynamic_loader::clear(), and dynamic_loader::remove_oct().

◆ open()

void dynamic_library::open ( const std::string &  f)
inline

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

References f.

Referenced by dynamic_loader::load_mex(), and dynamic_loader::load_oct().

◆ operator bool()

dynamic_library::operator bool ( ) const
inline

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

◆ operator=()

dynamic_library& dynamic_library::operator= ( const dynamic_library sl)
inline

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

References dynamic_library::dynlib_rep::m_count, and m_rep.

◆ operator==()

bool dynamic_library::operator== ( const dynamic_library sl) const
inline

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

References m_rep.

◆ remove()

bool dynamic_library::remove ( const std::string &  name)
inline

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

Referenced by dynamic_loader::remove_oct().

◆ search()

void* dynamic_library::search ( const std::string &  nm,
const name_mangler mangler = name_mangler () 
) const
inline

◆ time_loaded()

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

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

Member Data Documentation

◆ m_rep

dynlib_rep* dynamic_library::m_rep
private

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

Referenced by operator=(), and operator==().

◆ s_nil_rep

dynamic_library::dynlib_rep dynamic_library::s_nil_rep
staticprivate

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


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