GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "load-path.h"
Classes | |
class | dir_info |
class | file_info |
class | loader |
Public Types | |
typedef void(* | hook_fcn_ptr )(const std::string &dir) |
Public Member Functions | |
~load_path (void) | |
Protected Member Functions | |
load_path (void) | |
Private Types | |
typedef abs_dir_cache_type::iterator | abs_dir_cache_iterator |
typedef std::map< std::string, dir_info > | abs_dir_cache_type |
typedef abs_dir_cache_type::const_iterator | const_abs_dir_cache_iterator |
typedef dir_info_list_type::const_iterator | const_dir_info_list_iterator |
typedef fcn_map_type::const_iterator | const_fcn_map_iterator |
typedef file_info_list_type::const_iterator | const_file_info_list_iterator |
typedef loader_map_type::const_iterator | const_loader_map_iterator |
typedef method_map_type::const_iterator | const_method_map_iterator |
typedef private_fcn_map_type::const_iterator | const_private_fcn_map_iterator |
typedef dir_info_list_type::iterator | dir_info_list_iterator |
typedef std::list< dir_info > | dir_info_list_type |
typedef fcn_map_type::iterator | fcn_map_iterator |
typedef std::map< std::string, file_info_list_type > | fcn_map_type |
typedef file_info_list_type::iterator | file_info_list_iterator |
typedef std::list< file_info > | file_info_list_type |
typedef loader_map_type::iterator | loader_map_iterator |
typedef std::map< std::string, loader > | loader_map_type |
typedef method_map_type::iterator | method_map_iterator |
typedef std::map< std::string, fcn_map_type > | method_map_type |
typedef private_fcn_map_type::iterator | private_fcn_map_iterator |
typedef std::map< std::string, dir_info::fcn_file_map_type > | private_fcn_map_type |
Static Private Member Functions | |
static bool | check_file_type (std::string &fname, int type, int possible_types, const std::string &fcn, const char *who) |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
loader | default_loader |
dir_info_list_type | dir_info_list |
std::set< std::string > | init_dirs |
loader_map_type | loader_map |
Static Private Attributes | |
static abs_dir_cache_type | abs_dir_cache |
static hook_fcn_ptr | add_hook = load_path::execute_pkg_add |
static std::string | command_line_path |
static load_path * | instance = 0 |
static const int | M_FILE = 1 |
static const int | MEX_FILE = 4 |
static const int | OCT_FILE = 2 |
static hook_fcn_ptr | remove_hook = load_path::execute_pkg_del |
static std::string | sys_path |
Friends | |
dir_info::fcn_file_map_type | get_fcn_files (const std::string &d) |
string_vector | get_file_list (const dir_info::fcn_file_map_type &lst) |
void | print_fcn_list (std::ostream &os, const dir_info::fcn_file_map_type &lst) |
void | print_types (std::ostream &os, int types) |
Definition at line 38 of file load-path.h.
|
private |
Definition at line 472 of file load-path.h.
|
private |
Definition at line 469 of file load-path.h.
|
private |
Definition at line 471 of file load-path.h.
|
private |
Definition at line 466 of file load-path.h.
|
private |
Definition at line 482 of file load-path.h.
|
private |
Definition at line 476 of file load-path.h.
|
private |
Definition at line 609 of file load-path.h.
|
private |
Definition at line 495 of file load-path.h.
|
private |
Definition at line 489 of file load-path.h.
|
private |
Definition at line 467 of file load-path.h.
|
private |
Definition at line 464 of file load-path.h.
|
private |
Definition at line 483 of file load-path.h.
|
private |
Definition at line 480 of file load-path.h.
|
private |
Definition at line 477 of file load-path.h.
|
private |
Definition at line 474 of file load-path.h.
typedef void(* load_path::hook_fcn_ptr)(const std::string &dir) |
Definition at line 49 of file load-path.h.
|
private |
Definition at line 610 of file load-path.h.
|
private |
Definition at line 607 of file load-path.h.
|
private |
Definition at line 496 of file load-path.h.
|
private |
Definition at line 493 of file load-path.h.
|
private |
Definition at line 490 of file load-path.h.
|
private |
Definition at line 487 of file load-path.h.
|
inlineprotected |
Definition at line 44 of file load-path.h.
Referenced by instance_ok().
|
inline |
Definition at line 51 of file load-path.h.
|
private |
Definition at line 1874 of file load-path.cc.
References load_path::loader::add(), get_loader(), p, load_path::dir_info::package_dir_map, and string.
Referenced by do_add(), and do_update().
|
inlinestatic |
Definition at line 71 of file load-path.h.
|
staticprivate |
Definition at line 996 of file load-path.cc.
References error(), M_FILE, MEX_FILE, OCT_FILE, retval, and type.
Referenced by load_path::loader::find_fcn(), load_path::loader::find_method(), and load_path::loader::find_private_fcn().
|
inlinestaticprivate |
Definition at line 622 of file load-path.h.
Referenced by instance_ok().
|
inlinestatic |
Definition at line 59 of file load-path.h.
|
private |
Definition at line 388 of file load-path.cc.
References dir_info_list, and find_dir_info().
|
inlinestatic |
Definition at line 94 of file load-path.h.
|
inlinestatic |
Definition at line 235 of file load-path.h.
Referenced by load_path::loader::display(), load_path::loader::move(), and load_path::loader::remove().
|
inlinestatic |
Definition at line 230 of file load-path.h.
Referenced by do_path().
|
inlinestatic |
Definition at line 257 of file load-path.h.
|
private |
Definition at line 750 of file load-path.cc.
References add(), add_hook, dir_info_list, do_move(), octave::sys::base_file_stat::error(), find_dir_info(), fs, octave::sys::base_file_stat::is_dir(), string, strip_trailing_separators(), octave::sys::file_ops::tilde_expand(), warning(), and warning_with_id().
Referenced by do_append(), and do_prepend().
|
private |
|
private |
Definition at line 622 of file load-path.cc.
References load_path::loader::clear(), default_loader, dir_info_list, and loader_map.
Referenced by do_set().
|
private |
Definition at line 394 of file load-path.cc.
References dir_info_list, retval, and same_file().
|
private |
Definition at line 1655 of file load-path.cc.
References dir_info_list, and retval.
|
private |
Definition at line 1638 of file load-path.cc.
References dir_info_list, k, and retval.
|
private |
Definition at line 1811 of file load-path.cc.
References default_loader, dir_info_list, load_path::loader::display(), string_vector::empty(), get_file_list, string_vector::list_in_columns(), loader_map, load_path::dir_info::class_info::method_file_map, and p.
|
private |
Definition at line 1696 of file load-path.cc.
References default_loader, and load_path::loader::fcn_names().
|
private |
Definition at line 1668 of file load-path.cc.
References dir_info_list, find_dir_info(), fname, if(), Array< T >::numel(), p, retval, and string.
|
private |
Definition at line 1568 of file load-path.cc.
References octave::sys::env::absolute_pathname(), octave::sys::file_ops::concat(), dir_info_list, octave::sys::file_ops::dir_sep_chars(), octave::sys::base_file_stat::exists(), file, fs, Array< T >::numel(), p, string_vector::resize(), octave::sys::env::rooted_relative_pathname(), and string.
|
private |
Definition at line 1394 of file load-path.cc.
References octave::sys::env::absolute_pathname(), dir_info_list, octave::sys::file_ops::dir_sep_chars(), octave::sys::file_ops::dir_sep_str(), octave::sys::base_file_stat::exists(), fs, octave::sys::base_file_stat::is_dir(), octave::sys::file_ops::is_dir_sep(), octave::sys::env::make_absolute(), p, retval, octave::sys::env::rooted_relative_pathname(), and string.
|
private |
Definition at line 1333 of file load-path.cc.
References octave::sys::env::absolute_pathname(), octave::sys::file_ops::concat(), dir_info_list, octave::sys::file_ops::dir_sep_chars(), octave::sys::base_file_stat::exists(), find_private_file(), fs, Array< T >::numel(), p, retval, octave::sys::env::rooted_relative_pathname(), and string.
|
private |
Definition at line 1488 of file load-path.cc.
References octave::sys::env::absolute_pathname(), octave::sys::file_ops::concat(), dir_info_list, octave::sys::file_ops::dir_sep_chars(), done, octave::sys::base_file_stat::exists(), file, fs, Array< T >::numel(), p, string_vector::resize(), retval, octave::sys::env::rooted_relative_pathname(), and string.
|
private |
Definition at line 1441 of file load-path.cc.
References octave::sys::env::absolute_pathname(), dir_info_list, octave::sys::file_ops::dir_sep_chars(), octave::sys::file_ops::dir_sep_str(), octave::sys::base_file_stat::exists(), fs, octave::sys::base_file_stat::is_dir(), octave::sys::file_ops::is_dir_sep(), octave::sys::env::make_absolute(), p, octave::sys::env::rooted_relative_pathname(), and string.
|
inlineprivate |
Definition at line 691 of file load-path.h.
|
private |
Definition at line 2201 of file load-path.cc.
References loader_map, and retval.
|
inlineprivate |
Definition at line 729 of file load-path.h.
|
private |
Definition at line 584 of file load-path.cc.
References command_line_path, do_set(), octave::sys::env::getenv(), maybe_add_path_elts(), octave::directory_path::path_sep_str(), string, sys_path, Vfcn_file_dir, Vlocal_api_fcn_file_dir, Vlocal_api_oct_file_dir, Vlocal_fcn_file_dir, Vlocal_oct_file_dir, Vlocal_ver_fcn_file_dir, Vlocal_ver_oct_file_dir, Voct_data_dir, and Voct_file_dir.
|
private |
Definition at line 506 of file load-path.cc.
References dir_info_list, and move().
Referenced by do_add().
|
private |
Definition at line 1260 of file load-path.cc.
References default_loader, loader_map, load_path::loader::overloads(), and retval.
|
private |
Definition at line 1719 of file load-path.cc.
References dirs(), Array< T >::numel(), octave::directory_path::path_sep_str(), and string.
|
private |
|
private |
Definition at line 895 of file load-path.cc.
References dir_info_list, find_dir_info(), remove_hook, retval, string, strip_trailing_separators(), octave::sys::file_ops::tilde_expand(), and warning().
|
private |
Definition at line 665 of file load-path.cc.
References add_hook, dir_info_list, do_append(), do_clear(), do_prepend(), frame, init_dirs, action_container::protect_var(), action_container::run_first(), split_path(), and warning_with_id().
Referenced by do_initialize().
|
inlineprivate |
Definition at line 727 of file load-path.h.
|
private |
Definition at line 973 of file load-path.cc.
References add(), load_path::loader::clear(), default_loader, dir_info_list, loader_map, p, and load_path::dir_info::update().
|
static |
Definition at line 2233 of file load-path.cc.
References execute_pkg_add_or_del().
|
static |
Definition at line 2239 of file load-path.cc.
References execute_pkg_add_or_del().
|
inlinestatic |
Definition at line 247 of file load-path.h.
Referenced by make_name_list().
|
inlinestatic |
Definition at line 241 of file load-path.h.
|
inlinestatic |
Definition at line 224 of file load-path.h.
|
inlinestatic |
Definition at line 206 of file load-path.h.
|
private |
Definition at line 352 of file load-path.cc.
References dir_info_list, retval, string, and octave::sys::file_ops::tilde_expand().
Referenced by contains(), do_add(), do_files(), and do_remove().
|
private |
Definition at line 370 of file load-path.cc.
References dir_info_list, retval, string, and octave::sys::file_ops::tilde_expand().
|
inlinestatic |
Definition at line 146 of file load-path.h.
Referenced by symbol_table::fcn_info::fcn_info_rep::find_user_function(), out_of_date_check(), and symbol_exist().
|
inlinestatic |
Definition at line 154 of file load-path.h.
References string.
|
inlinestatic |
Definition at line 170 of file load-path.h.
References string.
|
inlinestatic |
Definition at line 200 of file load-path.h.
Referenced by lookup_autoload().
|
inlinestatic |
Definition at line 218 of file load-path.h.
|
inlinestatic |
Definition at line 212 of file load-path.h.
|
inlinestatic |
Definition at line 99 of file load-path.h.
Referenced by cdef_method::cdef_method_rep::check_method(), load_path::loader::find_fcn(), octave_class::load_ascii(), octave_class::load_binary(), symbol_table::fcn_info::fcn_info_rep::load_class_constructor(), symbol_table::fcn_info::fcn_info_rep::load_class_method(), octave_class::load_hdf5(), out_of_date_check(), read_mat5_binary_element(), octave_class::save_ascii(), octave_class::save_binary(), octave_class::save_hdf5(), and save_mat5_binary_element().
|
inlinestatic |
Definition at line 110 of file load-path.h.
References string.
|
inlinestatic |
Definition at line 190 of file load-path.h.
References string.
|
inlinestatic |
Definition at line 180 of file load-path.h.
References string.
|
inlinestatic |
Definition at line 132 of file load-path.h.
Referenced by cdef_manager::do_find_package().
|
inlinestatic |
Definition at line 161 of file load-path.h.
Referenced by symbol_table::fcn_info::fcn_info_rep::load_private_function().
|
inlinestatic |
Definition at line 263 of file load-path.h.
|
inlinestatic |
Definition at line 139 of file load-path.h.
Referenced by package_getAllPackages().
|
inlinestatic |
Definition at line 280 of file load-path.h.
|
inlineprivate |
Definition at line 673 of file load-path.h.
|
inlinestatic |
Definition at line 264 of file load-path.h.
Definition at line 53 of file load-path.h.
Referenced by F__pathorig__().
|
staticprivate |
Definition at line 331 of file load-path.cc.
References singleton_cleanup_list::add(), cleanup_instance(), error(), instance, load_path(), and retval.
|
private |
Definition at line 1246 of file load-path.cc.
References dir_info_list, and p.
|
inlinestatic |
Definition at line 118 of file load-path.h.
Referenced by cdef_class::make_meta_class().
|
private |
Definition at line 524 of file load-path.cc.
References get_loader(), load_path::loader::move(), p, load_path::dir_info::package_dir_map, and string.
Referenced by do_move().
|
inlinestatic |
Definition at line 126 of file load-path.h.
Referenced by make_fcn_handle().
|
inlinestatic |
Definition at line 252 of file load-path.h.
|
inlinestatic |
Definition at line 77 of file load-path.h.
|
inlinestatic |
Definition at line 83 of file load-path.h.
|
private |
Definition at line 936 of file load-path.cc.
References get_loader(), p, load_path::dir_info::package_dir_map, load_path::loader::remove(), and string.
|
inlinestatic |
Definition at line 65 of file load-path.h.
|
inlinestatic |
Definition at line 266 of file load-path.h.
References f.
|
inlinestatic |
Definition at line 272 of file load-path.h.
References p, and octave::directory_path::path_sep_str().
|
inlinestatic |
Definition at line 267 of file load-path.h.
References f.
|
inlinestatic |
Definition at line 286 of file load-path.h.
Referenced by F__pathorig__(), read_mat5_binary_element(), and octave_fcn_handle::set_fcn().
|
inlinestatic |
Definition at line 88 of file load-path.h.
Referenced by symbol_table::fcn_info::fcn_info_rep::builtin_find(), symbol_table::fcn_info::fcn_info_rep::find(), make_fcn_handle(), octave_change_to_directory(), octave_base_reader::octave_gets(), and rehash_internal().
|
friend |
Definition at line 254 of file load-path.cc.
Referenced by load_path::dir_info::get_method_file_map(), and load_path::dir_info::get_private_file_map().
|
friend |
Definition at line 1781 of file load-path.cc.
Referenced by do_display(), and load_path::dir_info::initialize().
|
friend |
Definition at line 1765 of file load-path.cc.
Referenced by load_path::loader::display().
|
friend |
Definition at line 1737 of file load-path.cc.
Referenced by load_path::loader::display(), and print_fcn_list().
|
staticprivate |
Definition at line 632 of file load-path.h.
Referenced by load_path::dir_info::initialize(), and load_path::dir_info::update().
|
staticprivate |
Definition at line 624 of file load-path.h.
|
staticprivate |
Definition at line 628 of file load-path.h.
Referenced by do_initialize().
|
mutableprivate |
Definition at line 614 of file load-path.h.
Referenced by do_clear(), do_display(), do_fcn_names(), do_overloads(), and do_update().
|
mutableprivate |
Definition at line 616 of file load-path.h.
Referenced by contains(), do_add(), do_clear(), do_contains_canonical(), do_dir_list(), do_dirs(), do_display(), do_files(), do_find_all_first_of(), do_find_dir(), do_find_file(), do_find_first_of(), do_find_matching_dirs(), do_move(), do_remove(), do_set(), do_update(), find_dir_info(), and is_package().
|
mutableprivate |
Definition at line 618 of file load-path.h.
Referenced by do_set().
|
staticprivate |
Definition at line 620 of file load-path.h.
Referenced by instance_ok().
|
mutableprivate |
Definition at line 612 of file load-path.h.
Referenced by do_clear(), do_display(), do_get_all_package_names(), do_overloads(), and do_update().
|
staticprivate |
Definition at line 293 of file load-path.h.
Referenced by load_path::loader::add_to_fcn_map(), check_file_type(), get_fcn_files(), and print_types().
|
staticprivate |
Definition at line 295 of file load-path.h.
Referenced by load_path::loader::add_to_fcn_map(), check_file_type(), get_fcn_files(), get_file_list(), and print_types().
|
staticprivate |
Definition at line 294 of file load-path.h.
Referenced by load_path::loader::add_to_fcn_map(), check_file_type(), get_fcn_files(), get_file_list(), and print_types().
|
staticprivate |
Definition at line 626 of file load-path.h.
Referenced by do_remove().
|
staticprivate |
Definition at line 630 of file load-path.h.
Referenced by load_path::loader::add_to_fcn_map(), and do_initialize().