GNU Octave  9.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:
auto_shlib

Classes

class  dynlib_rep
 

Public Types

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

Public Member Functions

 dynamic_library ()
 
 dynamic_library (const dynamic_library &sl)
 
 dynamic_library (const std::string &f, bool fake=true)
 
 ~dynamic_library ()
 
void add (const std::string &name)
 
std::list< std::string > close ()
 
void delete_later ()
 
std::string file_name () const
 
bool is_out_of_date () const
 
std::size_t number_of_functions_loaded () 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 () const
 

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 ( )
inline

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

◆ dynamic_library() [2/3]

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

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

◆ ~dynamic_library()

dynamic_library::~dynamic_library ( )
inline

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

◆ dynamic_library() [3/3]

dynamic_library::dynamic_library ( const dynamic_library sl)
inline

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

Member Function Documentation

◆ add()

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

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

◆ close()

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

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

◆ delete_later()

void dynamic_library::delete_later ( )

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

References possibly_unreferenced_dynamic_libraries.

◆ file_name()

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

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

◆ is_out_of_date()

bool dynamic_library::is_out_of_date ( ) const
inline

Definition at line 198 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 ( ) const
inline

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

Referenced by dynamic_loader::remove_oct().

◆ open()

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

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

◆ operator=()

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

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

References dynamic_library::dynlib_rep::m_count.

◆ operator==()

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

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

◆ remove()

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

Definition at line 192 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

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

References f.

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

◆ time_loaded()

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

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


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