GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
octave_shlib::shlib_rep Class Reference

#include "oct-shlib.h"

Collaboration diagram for octave_shlib::shlib_rep:
Collaboration graph
[legend]

Public Member Functions

 shlib_rep (void)
 
virtual ~shlib_rep (void)
 
void add_fcn_name (const std::string &)
 
void do_close_hook (close_hook cl_hook)
 
std::string file_name (void) const
 
virtual bool is_open (void) const
 
bool is_out_of_date (void) const
 
size_t num_fcn_names (void) const
 
bool remove_fcn_name (const std::string &)
 
virtual void * search (const std::string &, name_mangler=0)
 
octave_time time_loaded (void) const
 

Static Public Member Functions

static shlib_repget_instance (const std::string &f, bool fake)
 
static shlib_repnew_instance (const std::string &f)
 

Public Attributes

octave_refcount< intcount
 

Protected Types

typedef std::map< std::string,
size_t >::const_iterator 
fcn_names_const_iterator
 
typedef std::map< std::string,
size_t >::iterator 
fcn_names_iterator
 

Protected Member Functions

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

Protected Attributes

std::map< std::string, size_tfcn_names
 
std::string file
 
octave_time tm_loaded
 

Static Protected Attributes

static std::map< std::string,
shlib_rep * > 
instances
 

Detailed Description

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

Member Typedef Documentation

typedef std::map<std::string, size_t>::const_iterator octave_shlib::shlib_rep::fcn_names_const_iterator
protected

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

typedef std::map<std::string, size_t>::iterator octave_shlib::shlib_rep::fcn_names_iterator
protected

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

Constructor & Destructor Documentation

octave_shlib::shlib_rep::shlib_rep ( void  )
inline

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

octave_shlib::shlib_rep::shlib_rep ( const std::string &  f)
protected

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

References f, file, instances, and is_out_of_date().

virtual octave_shlib::shlib_rep::~shlib_rep ( void  )
inlinevirtual

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

Member Function Documentation

void octave_shlib::shlib_rep::add_fcn_name ( const std::string &  name)

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

void octave_shlib::shlib_rep::do_close_hook ( octave_shlib::close_hook  cl_hook)

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

void octave_shlib::shlib_rep::fake_reload ( void  )
protected

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

References base_file_stat::is_newer(), and base_file_stat::mtime().

Referenced by get_instance().

std::string octave_shlib::shlib_rep::file_name ( void  ) const
inline

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

octave_shlib::shlib_rep * octave_shlib::shlib_rep::get_instance ( const std::string &  f,
bool  fake 
)
static

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

References count, and fake_reload().

virtual bool octave_shlib::shlib_rep::is_open ( void  ) const
inlinevirtual

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

bool octave_shlib::shlib_rep::is_out_of_date ( void  ) const

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

References base_file_stat::is_newer().

Referenced by shlib_rep().

octave_shlib::shlib_rep * octave_shlib::shlib_rep::new_instance ( const std::string &  f)
static

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

size_t octave_shlib::shlib_rep::num_fcn_names ( void  ) const
inline

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

bool octave_shlib::shlib_rep::remove_fcn_name ( const std::string &  fcn_name)

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

virtual void* octave_shlib::shlib_rep::search ( const std::string &  ,
name_mangler  = 0 
)
inlinevirtual

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

octave_time octave_shlib::shlib_rep::time_loaded ( void  ) const
inline

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

Member Data Documentation

octave_refcount<int> octave_shlib::shlib_rep::count

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

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

std::map<std::string, size_t> octave_shlib::shlib_rep::fcn_names
protected

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

std::string octave_shlib::shlib_rep::file
protected

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

Referenced by shlib_rep().

std::map< std::string, octave_shlib::shlib_rep * > octave_shlib::shlib_rep::instances
staticprotected

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

Referenced by shlib_rep().

octave_time octave_shlib::shlib_rep::tm_loaded
protected

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


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