GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <algorithm>
#include "dir-ops.h"
#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "pathsearch.h"
#include "singleton-cleanup.h"
#include "defaults.h"
#include "defun.h"
#include "input.h"
#include "load-path.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "toplev.h"
#include "unwind-prot.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
void | execute_pkg_add (const std::string &dir) |
static void | execute_pkg_add_or_del (const std::string &dir, const std::string &script_file) |
void | execute_pkg_del (const std::string &dir) |
OCTAVE_EXPORT octave_value_list | F__dump_load_path__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__pathorig__ (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Faddpath (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fcommand_line_path (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Fgenpath (const octave_value_list &args, int) |
std::string | find_private_file (const std::string &fname) |
OCTAVE_EXPORT octave_value_list | Fpath (const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Frehash (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Frestoredefaultpath (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Frmpath (const octave_value_list &args, int nargout) |
std::string | genpath (const std::string &dirname, const string_vector &skip) |
load_path::dir_info::fcn_file_map_type | get_fcn_files (const std::string &d) |
string_vector | get_file_list (const load_path::dir_info::fcn_file_map_type &lst) |
static bool | in_path_list (const std::string &path_list, const std::string &path) |
static void | maybe_add_path_elts (std::string &path, const std::string &dir) |
void | print_fcn_list (std::ostream &os, const load_path::dir_info::fcn_file_map_type &lst) |
void | print_types (std::ostream &os, int types) |
static void | rehash_internal (void) |
static std::list< std::string > | split_path (const std::string &p) |
static std::string | strip_trailing_separators (const std::string &dir_arg) |
void execute_pkg_add | ( | const std::string & | dir | ) |
Definition at line 2220 of file load-path.cc.
References execute_pkg_add_or_del().
|
static |
Definition at line 2203 of file load-path.cc.
References file_ops::concat(), base_file_stat::exists(), octave_interpreter_ready, and source_file().
Referenced by execute_pkg_add(), and execute_pkg_del().
void execute_pkg_del | ( | const std::string & | dir | ) |
Definition at line 2226 of file load-path.cc.
References execute_pkg_add_or_del().
OCTAVE_EXPORT octave_value_list F__dump_load_path__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2579 of file load-path.cc.
References load_path::display(), and octave_stdout.
OCTAVE_EXPORT octave_value_list F__pathorig__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2337 of file load-path.cc.
References octave_value(), and load_path::system_path().
OCTAVE_EXPORT octave_value_list Faddpath | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2417 of file load-path.cc.
References load_path::append(), arg(), error(), error_state, octave_value::int_value(), octave_value::is_numeric_type(), octave_value::is_string(), load_path::path(), load_path::prepend(), print_usage(), rehash_internal(), split_path(), and octave_value::string_value().
OCTAVE_EXPORT octave_value_list Fcommand_line_path | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2310 of file load-path.cc.
References load_path::get_command_line_path(), and octave_value().
OCTAVE_EXPORT octave_value_list Fgenpath | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2239 of file load-path.cc.
References error(), error_state, genpath(), and print_usage().
std::string find_private_file | ( | const std::string & | fname | ) |
Definition at line 1297 of file load-path.cc.
References octave_function::dir_name(), file_ops::dir_sep_str(), base_file_stat::exists(), symbol_table::get_curr_fcn(), and base_file_stat::is_reg().
Referenced by load_path::do_find_file().
OCTAVE_EXPORT octave_value_list Fpath | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2359 of file load-path.cc.
References load_path::dirs(), error_state, octave_value::length(), string_vector::list_in_columns(), octave_stdout, load_path::path(), dir_path::path_sep_str(), rehash_internal(), and load_path::set().
OCTAVE_EXPORT octave_value_list Frehash | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2295 of file load-path.cc.
References rehash_internal().
OCTAVE_EXPORT octave_value_list Frestoredefaultpath | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2321 of file load-path.cc.
References load_path::initialize(), octave_value(), and load_path::system_path().
OCTAVE_EXPORT octave_value_list Frmpath | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2528 of file load-path.cc.
References arg(), error(), load_path::path(), print_usage(), rehash_internal(), load_path::remove(), split_path(), and warning().
std::string genpath | ( | const std::string & | dirname, |
const string_vector & | skip | ||
) |
Definition at line 2141 of file load-path.cc.
References file_ops::concat(), genpath(), base_file_stat::is_dir(), Array< T >::length(), dir_path::path_sep_str(), dir_entry::read(), and string_vector::sort().
Referenced by Fgenpath(), genpath(), install_load_path_fcns(), maybe_add_path_elts(), and set_image_path().
load_path::dir_info::fcn_file_map_type get_fcn_files | ( | const std::string & | d | ) |
Definition at line 243 of file load-path.cc.
References dir_entry::error(), Array< T >::length(), load_path::M_FILE, load_path::MEX_FILE, load_path::OCT_FILE, dir_entry::read(), valid_identifier(), and warning().
string_vector get_file_list | ( | const load_path::dir_info::fcn_file_map_type & | lst | ) |
Definition at line 1775 of file load-path.cc.
References load_path::MEX_FILE, and load_path::OCT_FILE.
|
static |
Definition at line 1849 of file load-path.cc.
References dir_path::path_sep_char().
Referenced by load_path::loader::add_to_fcn_map().
|
static |
Definition at line 565 of file load-path.cc.
References genpath(), and dir_path::path_sep_str().
Referenced by load_path::do_initialize().
void print_fcn_list | ( | std::ostream & | os, |
const load_path::dir_info::fcn_file_map_type & | lst | ||
) |
Definition at line 1759 of file load-path.cc.
References load_path::print_types.
void print_types | ( | std::ostream & | os, |
int | types | ||
) |
Definition at line 1731 of file load-path.cc.
References load_path::M_FILE, load_path::MEX_FILE, and load_path::OCT_FILE.
|
static |
Definition at line 2280 of file load-path.cc.
References octave_time::stamp(), load_path::update(), and Vlast_prompt_time.
Referenced by Faddpath(), Fpath(), Frehash(), and Frmpath().
|
static |
Definition at line 627 of file load-path.cc.
References dir_path::path_sep_char().
Referenced by load_path::do_set(), Faddpath(), and Frmpath().
|
static |
Definition at line 729 of file load-path.cc.
References file_ops::is_dir_sep().
Referenced by load_path::do_add(), and load_path::do_remove().