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

#include "oct-shlib.h"

Inheritance diagram for octave::dynamic_library:
Collaboration diagram for octave::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)
 
std::string file_name (void) const
 
bool is_out_of_date (void) const
 
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 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&)> octave::dynamic_library::name_mangler

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

Constructor & Destructor Documentation

◆ dynamic_library() [1/3]

octave::dynamic_library::dynamic_library ( void  )
inline

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

◆ dynamic_library() [2/3]

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

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

◆ ~dynamic_library()

octave::dynamic_library::~dynamic_library ( void  )
inline

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

◆ dynamic_library() [3/3]

octave::dynamic_library::dynamic_library ( const dynamic_library sl)
inline

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

Member Function Documentation

◆ add()

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

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

References name.

◆ close()

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

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

Referenced by octave::dynamic_loader::shlibs_list::remove(), and terminate_jvm().

◆ file_name()

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

◆ is_out_of_date()

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

◆ number_of_functions_loaded()

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

◆ open()

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

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

References octave::f().

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

◆ operator bool()

octave::dynamic_library::operator bool ( ) const
inline

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

◆ operator=()

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

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

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

◆ operator==()

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

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

References m_rep.

◆ remove()

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

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

References name.

Referenced by octave::dynamic_loader::remove_oct().

◆ search()

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

◆ time_loaded()

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

Member Data Documentation

◆ m_rep

dynlib_rep* octave::dynamic_library::m_rep
private

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

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

◆ s_nil_rep

dynamic_library::dynlib_rep octave::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: