Navigation

Operators and Keywords

Function List:

C++ API

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 "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"
Include dependency graph for load-path.cc:

Functions

load_path::dir_info::fcn_file_map_type get_fcn_files (const std::string &d)
void print_types (std::ostream &os, int types)
void print_fcn_list (std::ostream &os, const load_path::dir_info::fcn_file_map_type &lst)
string_vector get_file_list (const load_path::dir_info::fcn_file_map_type &lst)
std::string genpath (const std::string &dirname, const string_vector &skip)
void execute_pkg_add (const std::string &dir)
void execute_pkg_del (const std::string &dir)
 DEFUN (genpath, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} genpath (@var{dir})\n\ @deftypefnx {Built-in Function} {} genpath (@var{dir}, @var{skip}, @dots{})\n\ Return a path constructed from @var{dir} and all its subdirectories.\n\ If additional string parameters are given, the resulting path will \n\ exclude directories with those names.\n\ @end deftypefn")
 DEFUN (rehash,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} rehash ()\n\ Reinitialize Octave's load path directory cache.\n\ @end deftypefn")
 DEFUN (command_line_path,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} command_line_path (@dots{})\n\ Return the command line path variable.\n\ \n\ @seealso{path, addpath, rmpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn")
 DEFUN (restoredefaultpath,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} restoredefaultpath (@dots{})\n\ Restore Octave's path to it's initial state at startup.\n\ \n\ @seealso{path, addpath, rmpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn")
 DEFUN (__pathorig__,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} __pathorig__ ()\n\ Undocumented internal function.\n\ @end deftypefn")
 DEFUN (path, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} path (@dots{})\n\ Modify or display Octave's load path.\n\ \n\ If @var{nargin} and @var{nargout} are zero, display the elements of\n\ Octave's load path in an easy to read format.\n\ \n\ If @var{nargin} is zero and nargout is greater than zero, return the\n\ current load path.\n\ \n\ If @var{nargin} is greater than zero, concatenate the arguments,\n\ separating them with @code{pathsep}. Set the internal search path\n\ to the result and return it.\n\ \n\ No checks are made for duplicate elements.\n\ @seealso{addpath, rmpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn")
 DEFUN (addpath, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} addpath (@var{dir1}, @dots{})\n\ @deftypefnx {Built-in Function} {} addpath (@var{dir1}, @dots{}, @var{option})\n\ Add @var{dir1}, @dots{} to the current function search path. If\n\ @var{option} is @samp{\"-begin\"} or 0 (the default), prepend the\n\ directory name to the current path. If @var{option} is @samp{\"-end\"}\n\ or 1, append the directory name to the current path.\n\ Directories added to the path must exist.\n\ \n\ In addition to accepting individual directory arguments, lists of\n\ directory names separated by @code{pathsep} are also accepted. For example:\n\ \n\ @example\n\ addpath (\"dir1:/dir2:~/dir3\");\n\ @end example\n\ @seealso{path, rmpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn")
 DEFUN (rmpath, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} rmpath (@var{dir1}, @dots{})\n\ Remove @var{dir1}, @dots{} from the current function search path.\n\ \n\ In addition to accepting individual directory arguments, lists of\n\ directory names separated by @code{pathsep} are also accepted. For example:\n\ \n\ @example\n\ rmpath (\"dir1:/dir2:~/dir3\");\n\ @end example\n\ @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn")

Function Documentation

DEFUN ( genpath  ,
args   
)
DEFUN ( command_line_path   ) 
DEFUN ( restoredefaultpath   ) 
DEFUN ( __pathorig__   ) 
DEFUN ( path  ,
args  ,
nargout   
)
DEFUN ( addpath  ,
args  ,
nargout   
)
DEFUN ( rmpath  ,
args  ,
nargout   
)
DEFUN ( rehash   ) 
void execute_pkg_add ( const std::string &  dir  ) 
void execute_pkg_del ( const std::string &  dir  ) 
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  ) 
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 
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines