GNU Octave  4.2.1
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 | Private Member Functions | Private Attributes | List of all members
load_path::loader Class Reference
Collaboration diagram for load_path::loader:
Collaboration graph
[legend]

Public Member Functions

 loader (const std::string &pfx="")
 
 loader (const loader &l)
 
 ~loader (void)
 
void add (const dir_info &di, bool at_end, bool updating)
 
void clear (void)
 
void display (std::ostream &out) const
 
string_vector fcn_names (void) const
 
std::string find_fcn (const std::string &fcn, std::string &dir_name, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::string find_method (const std::string &class_name, const std::string &meth, std::string &dir_name, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::string find_private_fcn (const std::string &dir, const std::string &fcn, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::list< std::stringmethods (const std::string &class_name) const
 
void move (const dir_info &di, bool at_end)
 
loaderoperator= (const loader &l)
 
void overloads (const std::string &meth, std::list< std::string > &l) const
 
void remove (const dir_info &di)
 

Private Member Functions

void add_to_fcn_map (const dir_info &di, bool at_end, bool updating)
 
void add_to_method_map (const dir_info &di, bool at_end)
 
void add_to_private_fcn_map (const dir_info &di)
 
void move_fcn_map (const std::string &dir, const string_vector &fcn_files, bool at_end)
 
void move_method_map (const std::string &dir, bool at_end)
 
void remove_fcn_map (const std::string &dir, const string_vector &fcn_files)
 
void remove_method_map (const std::string &dir)
 
void remove_private_fcn_map (const std::string &dir)
 

Private Attributes

std::list< std::stringdir_list
 
fcn_map_type fcn_map
 
method_map_type method_map
 
std::string prefix
 
private_fcn_map_type private_fcn_map
 

Detailed Description

Definition at line 498 of file load-path.h.

Constructor & Destructor Documentation

load_path::loader::loader ( const std::string pfx = "")
inline

Definition at line 501 of file load-path.h.

load_path::loader::loader ( const loader l)
inline

Definition at line 505 of file load-path.h.

load_path::loader::~loader ( void  )
inline

Definition at line 509 of file load-path.h.

Member Function Documentation

void load_path::loader::add ( const dir_info di,
bool  at_end,
bool  updating 
)
inline

Definition at line 525 of file load-path.h.

References load_path::dir_info::dir_name.

Referenced by load_path::add().

void load_path::loader::add_to_fcn_map ( const dir_info di,
bool  at_end,
bool  updating 
)
private
void load_path::loader::add_to_method_map ( const dir_info di,
bool  at_end 
)
private
void load_path::loader::add_to_private_fcn_map ( const dir_info di)
private
void load_path::loader::clear ( void  )
inline

Definition at line 543 of file load-path.h.

Referenced by load_path::do_clear(), and load_path::do_update().

void load_path::loader::display ( std::ostream &  out) const
string_vector load_path::loader::fcn_names ( void  ) const

Definition at line 1702 of file load-path.cc.

References p, retval, and Array< T >::size().

Referenced by load_path::do_fcn_names().

std::string load_path::loader::find_fcn ( const std::string fcn,
std::string dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const
std::string load_path::loader::find_method ( const std::string class_name,
const std::string meth,
std::string dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const
std::string load_path::loader::find_private_fcn ( const std::string dir,
const std::string fcn,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const
std::list< std::string > load_path::loader::methods ( const std::string class_name) const

Definition at line 1223 of file load-path.cc.

References m, p, and retval.

void load_path::loader::move ( const dir_info di,
bool  at_end 
)
void load_path::loader::move_fcn_map ( const std::string dir,
const string_vector fcn_files,
bool  at_end 
)
private

Definition at line 413 of file load-path.cc.

References fi, fname, k, Array< T >::numel(), p, and string.

void load_path::loader::move_method_map ( const std::string dir,
bool  at_end 
)
private

Definition at line 462 of file load-path.cc.

References octave::sys::file_ops::concat(), fi, p, and string.

loader& load_path::loader::operator= ( const loader l)
inline

Definition at line 511 of file load-path.h.

References dir_list, fcn_map, method_map, prefix, and private_fcn_map.

void load_path::loader::overloads ( const std::string meth,
std::list< std::string > &  l 
) const

Definition at line 1276 of file load-path.cc.

References m, and string.

Referenced by load_path::do_overloads().

void load_path::loader::remove ( const dir_info di)
void load_path::loader::remove_fcn_map ( const std::string dir,
const string_vector fcn_files 
)
private

Definition at line 805 of file load-path.cc.

References fname, k, Array< T >::numel(), p, and string.

void load_path::loader::remove_method_map ( const std::string dir)
private

Definition at line 854 of file load-path.cc.

References octave::sys::file_ops::concat(), p, and string.

void load_path::loader::remove_private_fcn_map ( const std::string dir)
private

Definition at line 845 of file load-path.cc.

References p.

Member Data Documentation

std::list<std::string> load_path::loader::dir_list
private

Definition at line 597 of file load-path.h.

Referenced by operator=().

fcn_map_type load_path::loader::fcn_map
private

Definition at line 599 of file load-path.h.

Referenced by operator=().

method_map_type load_path::loader::method_map
private

Definition at line 603 of file load-path.h.

Referenced by operator=().

std::string load_path::loader::prefix
private

Definition at line 595 of file load-path.h.

Referenced by operator=().

private_fcn_map_type load_path::loader::private_fcn_map
private

Definition at line 601 of file load-path.h.

Referenced by operator=().


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