GNU Octave  4.0.0
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
Functions
load-path.cc File Reference
#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"
Include dependency graph for load-path.cc:

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)
 

Function Documentation

void execute_pkg_add ( const std::string &  dir)

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

References execute_pkg_add_or_del().

static void execute_pkg_add_or_del ( const std::string &  dir,
const std::string &  script_file 
)
static
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 
)
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)
OCTAVE_EXPORT octave_value_list Fpath ( const octave_value_list args,
int  nargout 
)
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 
)
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)

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

References load_path::MEX_FILE, and load_path::OCT_FILE.

static bool in_path_list ( const std::string &  path_list,
const std::string &  path 
)
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 void maybe_add_path_elts ( std::string &  path,
const std::string &  dir 
)
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 void rehash_internal ( void  )
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 std::list<std::string> split_path ( const std::string &  p)
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 std::string strip_trailing_separators ( const std::string &  dir_arg)
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().