GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
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::string > | methods (const std::string &class_name) const |
void | move (const dir_info &di, bool at_end) |
loader & | operator= (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::string > | dir_list |
fcn_map_type | fcn_map |
method_map_type | method_map |
std::string | prefix |
private_fcn_map_type | private_fcn_map |
Definition at line 498 of file load-path.h.
|
inline |
Definition at line 501 of file load-path.h.
|
inline |
Definition at line 505 of file load-path.h.
|
inline |
Definition at line 509 of file load-path.h.
Definition at line 525 of file load-path.h.
References load_path::dir_info::dir_name.
Referenced by load_path::add().
Definition at line 1896 of file load-path.cc.
References octave::sys::file_ops::concat(), load_path::dir_info::dir_name, load_path::file_info::dir_name, load_path::dir_info::fcn_files, fi, fname, in_path_list(), symbol_table::is_built_in_function_name(), load_path::M_FILE, load_path::MEX_FILE, Array< T >::numel(), load_path::OCT_FILE, p, string, load_path::sys_path, t, load_path::file_info::types, and warning_with_id().
Definition at line 2008 of file load-path.cc.
References octave::sys::file_ops::concat(), load_path::dir_info::dir_name, fi, m, load_path::dir_info::class_info::method_file_map, load_path::dir_info::method_file_map, p, load_path::dir_info::class_info::private_file_map, string, and load_path::file_info::types.
|
private |
Definition at line 1999 of file load-path.cc.
References load_path::dir_info::dir_name, and load_path::dir_info::private_file_map.
|
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 |
Definition at line 2079 of file load-path.cc.
References octave::sys::file_ops::concat(), load_path::dir_list(), p, load_path::print_fcn_list, load_path::print_types, and s.
Referenced by load_path::do_display().
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 |
Definition at line 1090 of file load-path.cc.
References load_path::check_file_type(), octave::sys::file_ops::concat(), load_path::file_info::dir_name, fi, load_path::find_method(), p, retval, string, and load_path::file_info::types.
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 |
Definition at line 1175 of file load-path.cc.
References load_path::check_file_type(), octave::sys::file_ops::concat(), load_path::file_info::dir_name, fi, found, m, p, retval, string, and load_path::file_info::types.
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 |
Definition at line 1145 of file load-path.cc.
References load_path::check_file_type(), octave::sys::file_ops::concat(), fname, m, p, retval, and string.
std::list< std::string > load_path::loader::methods | ( | const std::string & | class_name | ) | const |
Definition at line 1223 of file load-path.cc.
Definition at line 545 of file load-path.cc.
References load_path::dir_list(), load_path::dir_info::dir_name, load_path::dir_info::fcn_files, find(), s, and string.
Referenced by load_path::move().
|
private |
Definition at line 413 of file load-path.cc.
References fi, fname, k, Array< T >::numel(), p, and string.
|
private |
Definition at line 462 of file load-path.cc.
References octave::sys::file_ops::concat(), fi, p, and string.
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.
Referenced by load_path::do_overloads().
void load_path::loader::remove | ( | const dir_info & | di | ) |
Definition at line 957 of file load-path.cc.
References load_path::dir_list(), load_path::dir_info::dir_name, load_path::dir_info::fcn_files, and string.
Referenced by load_path::remove().
|
private |
Definition at line 805 of file load-path.cc.
References fname, k, Array< T >::numel(), p, and string.
|
private |
Definition at line 854 of file load-path.cc.
References octave::sys::file_ops::concat(), p, and string.
|
private |
Definition at line 845 of file load-path.cc.
References p.
|
private |
Definition at line 597 of file load-path.h.
Referenced by operator=().
|
private |
Definition at line 599 of file load-path.h.
Referenced by operator=().
|
private |
Definition at line 603 of file load-path.h.
Referenced by operator=().
|
private |
Definition at line 595 of file load-path.h.
Referenced by operator=().
|
private |
Definition at line 601 of file load-path.h.
Referenced by operator=().