GNU Octave
3.8.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 "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__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) |
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 1985 of file load-path.cc.
References execute_pkg_add_or_del().
|
static |
Definition at line 1968 of file load-path.cc.
References 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 1991 of file load-path.cc.
References execute_pkg_add_or_del().
OCTAVE_EXPORT octave_value_list F__pathorig__ | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2101 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 2180 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 2074 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 2003 of file load-path.cc.
References error(), error_state, genpath(), and print_usage().
OCTAVE_EXPORT octave_value_list Fpath | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 2123 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 2059 of file load-path.cc.
References rehash_internal().
OCTAVE_EXPORT octave_value_list Frestoredefaultpath | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2085 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 2291 of file load-path.cc.
References arg(), error(), error_state, 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 1922 of file load-path.cc.
References concat(), genpath(), base_file_stat::is_dir(), Array< T >::length(), dir_path::path_sep_str(), and dir_entry::read().
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 218 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 1595 of file load-path.cc.
References load_path::MEX_FILE, and load_path::OCT_FILE.
|
static |
Definition at line 1727 of file load-path.cc.
References dir_path::path_sep_char().
Referenced by load_path::add_to_fcn_map().
|
static |
Definition at line 493 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 1579 of file load-path.cc.
References load_path::print_types.
Definition at line 1551 of file load-path.cc.
References load_path::M_FILE, load_path::MEX_FILE, and load_path::OCT_FILE.
Definition at line 2044 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 553 of file load-path.cc.
References dir_path::path_sep_char().
Referenced by load_path::do_set(), Faddpath(), and Frmpath().
|
static |
Definition at line 655 of file load-path.cc.
References file_ops::is_dir_sep().
Referenced by load_path::do_add(), and load_path::do_remove().