GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pathsearch.h"
Classes | |
class | static_members |
Public Member Functions | |
directory_path (const std::string &s="", const std::string &d="") | |
directory_path (const directory_path &dp) | |
~directory_path (void) | |
std::list< std::string > | all_directories (void) |
std::list< std::string > | elements (void) |
std::string | find (const std::string &nm) |
std::list< std::string > | find_all (const std::string &) |
std::list< std::string > | find_all_first_of (const std::list< std::string > &names) |
std::string | find_first (const std::string &) |
std::string | find_first_of (const std::list< std::string > &names) |
directory_path & | operator= (const directory_path &dp) |
void | rehash (void) |
void | set (const std::string &s) |
Static Public Member Functions | |
static bool | is_path_sep (char c) |
static char | path_sep_char (void) |
static void | path_sep_char (char c) |
static std::string | path_sep_str (void) |
Private Member Functions | |
void | init (void) |
Private Attributes | |
std::string | m_default_path |
std::string | m_expanded_path |
bool | m_initialized |
std::string | m_orig_path |
std::list< std::string > | m_path_elements |
Definition at line 33 of file pathsearch.h.
|
inline |
Definition at line 39 of file pathsearch.h.
|
inline |
Definition at line 47 of file pathsearch.h.
|
inline |
Definition at line 69 of file pathsearch.h.
std::list< std::string > octave::directory_path::all_directories | ( | void | ) |
Definition at line 72 of file pathsearch.cc.
References kpse_element_dir(), m_initialized, m_path_elements, retval, and string.
std::list< std::string > octave::directory_path::elements | ( | void | ) |
Definition at line 66 of file pathsearch.cc.
References m_initialized, and m_path_elements.
|
inline |
Definition at line 84 of file pathsearch.h.
std::list< std::string > octave::directory_path::find_all | ( | const std::string & | nm | ) |
Definition at line 97 of file pathsearch.cc.
References kpse_all_path_search(), m_expanded_path, and m_initialized.
std::list< std::string > octave::directory_path::find_all_first_of | ( | const std::list< std::string > & | names | ) |
Definition at line 112 of file pathsearch.cc.
References kpse_all_path_find_first_of(), m_expanded_path, and m_initialized.
Referenced by search_path_for_all_files().
std::string octave::directory_path::find_first | ( | const std::string & | nm | ) |
Definition at line 91 of file pathsearch.cc.
References kpse_path_search(), m_expanded_path, and m_initialized.
std::string octave::directory_path::find_first_of | ( | const std::list< std::string > & | names | ) |
Definition at line 105 of file pathsearch.cc.
References kpse_path_find_first_of(), m_expanded_path, and m_initialized.
Referenced by read_mat5_binary_element(), search_path_for_file(), and octave_fcn_handle::set_fcn().
|
private |
Definition at line 120 of file pathsearch.cc.
References octave::sys::env::getenv(), kpse_debug, kpse_expand_default(), kpse_path_expand(), m_default_path, m_expanded_path, m_initialized, m_orig_path, m_path_elements, octave::math::pi, string, and val.
|
inlinestatic |
Definition at line 114 of file pathsearch.h.
Referenced by kpse_path_iterator::next(), and kpse_path_iterator::set_end().
|
inline |
Definition at line 55 of file pathsearch.h.
References m_default_path, m_expanded_path, m_initialized, m_orig_path, and m_path_elements.
|
inlinestatic |
Definition at line 99 of file pathsearch.h.
Referenced by in_path_list(), and split_path().
|
inlinestatic |
Definition at line 104 of file pathsearch.h.
|
inlinestatic |
Definition at line 109 of file pathsearch.h.
Referenced by load_path::do_initialize(), load_path::do_path(), genpath(), maybe_add_path_elts(), read_classpath_txt(), load_path::set_command_line_path(), set_exec_path(), and set_image_path().
|
inline |
Definition at line 93 of file pathsearch.h.
|
inline |
Definition at line 71 of file pathsearch.h.
References s.
|
private |
Definition at line 123 of file pathsearch.h.
Referenced by init(), and operator=().
|
private |
Definition at line 130 of file pathsearch.h.
Referenced by find_all(), find_all_first_of(), find_first(), find_first_of(), init(), and operator=().
|
private |
Definition at line 126 of file pathsearch.h.
Referenced by all_directories(), elements(), find_all(), find_all_first_of(), find_first(), find_first_of(), init(), and operator=().
|
private |
Definition at line 119 of file pathsearch.h.
Referenced by init(), and operator=().
|
private |
Definition at line 133 of file pathsearch.h.
Referenced by all_directories(), elements(), init(), and operator=().