GNU Octave  4.4.1
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::string(* name_mangler) (const std::string &)
 

Public Member Functions

 dynamic_library (void)
 
 dynamic_library (const std::string &f, bool fake=true)
 
 dynamic_library (const dynamic_library &sl)
 
 ~dynamic_library (void)
 
void add (const std::string &name)
 
std::list< std::stringclose (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, name_mangler mangler=nullptr) const
 
sys::time time_loaded (void) const
 

Private Attributes

dynlib_reprep
 

Static Private Attributes

static dynlib_rep nil_rep
 

Detailed Description

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

Member Typedef Documentation

◆ name_mangler

typedef std::string(* octave::dynamic_library::name_mangler) (const std::string &)

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

Constructor & Destructor Documentation

◆ dynamic_library() [1/3]

octave::dynamic_library::dynamic_library ( void  )
inline

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

◆ ~dynamic_library()

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

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

◆ dynamic_library() [3/3]

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

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

Member Function Documentation

◆ add()

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

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

References name.

◆ close()

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

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

References 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 156 of file oct-shlib.h.

◆ operator=()

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

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

References octave::dynamic_library::dynlib_rep::count, and rep.

◆ operator==()

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

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

References rep.

◆ remove()

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

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

References name.

Referenced by octave::dynamic_loader::remove_mex(), and octave::dynamic_loader::remove_oct().

◆ search()

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

◆ time_loaded()

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

Member Data Documentation

◆ nil_rep

dynamic_library::dynlib_rep octave::dynamic_library::nil_rep
staticprivate

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

◆ rep

dynlib_rep* octave::dynamic_library::rep
private

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

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


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