GNU Octave  4.2.1
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
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
octave::directory_path Class Reference

#include "pathsearch.h"

Collaboration diagram for octave::directory_path:
Collaboration graph
[legend]

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::stringall_directories (void)
 
std::list< std::stringelements (void)
 
std::string find (const std::string &nm)
 
std::list< std::stringfind_all (const std::string &)
 
std::list< std::stringfind_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_pathoperator= (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::stringm_path_elements
 

Detailed Description

Definition at line 33 of file pathsearch.h.

Constructor & Destructor Documentation

octave::directory_path::directory_path ( const std::string s = "",
const std::string d = "" 
)
inline

Definition at line 39 of file pathsearch.h.

octave::directory_path::directory_path ( const directory_path dp)
inline

Definition at line 47 of file pathsearch.h.

octave::directory_path::~directory_path ( void  )
inline

Definition at line 69 of file pathsearch.h.

Member Function Documentation

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.

std::string octave::directory_path::find ( const std::string nm)
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)
void octave::directory_path::init ( void  )
private
static bool octave::directory_path::is_path_sep ( char  c)
inlinestatic

Definition at line 114 of file pathsearch.h.

Referenced by kpse_path_iterator::next(), and kpse_path_iterator::set_end().

directory_path& octave::directory_path::operator= ( const directory_path dp)
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.

static char octave::directory_path::path_sep_char ( void  )
inlinestatic

Definition at line 99 of file pathsearch.h.

Referenced by in_path_list(), and split_path().

static void octave::directory_path::path_sep_char ( char  c)
inlinestatic

Definition at line 104 of file pathsearch.h.

static std::string octave::directory_path::path_sep_str ( void  )
inlinestatic
void octave::directory_path::rehash ( void  )
inline

Definition at line 93 of file pathsearch.h.

void octave::directory_path::set ( const std::string s)
inline

Definition at line 71 of file pathsearch.h.

References s.

Member Data Documentation

std::string octave::directory_path::m_default_path
private

Definition at line 123 of file pathsearch.h.

Referenced by init(), and operator=().

std::string octave::directory_path::m_expanded_path
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=().

bool octave::directory_path::m_initialized
private
std::string octave::directory_path::m_orig_path
private

Definition at line 119 of file pathsearch.h.

Referenced by init(), and operator=().

std::list<std::string> octave::directory_path::m_path_elements
private

Definition at line 133 of file pathsearch.h.

Referenced by all_directories(), elements(), init(), and operator=().


The documentation for this class was generated from the following files: