GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::directory_path Class Reference

#include "pathsearch.h"

Collaboration diagram for octave::directory_path:

Public Member Functions

 directory_path (const std::string &s="", const std::string &d="")
 directory_path (const directory_path &)=default
 ~directory_path (void)=default
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 &)=default
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 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

◆ directory_path() [1/2]

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

Definition at line 39 of file

References init(), and m_orig_path.

◆ directory_path() [2/2]

octave::directory_path::directory_path ( const directory_path )

◆ ~directory_path()

octave::directory_path::~directory_path ( void  )

Member Function Documentation

◆ all_directories()

std::list< std::string > octave::directory_path::all_directories ( void  )

Definition at line 52 of file

References kpse_element_dir(), m_initialized, m_path_elements, retval, and string.

◆ elements()

std::list< std::string > octave::directory_path::elements ( void  )

Definition at line 47 of file

References m_initialized, and m_path_elements.

◆ find()

std::string octave::directory_path::find ( const std::string nm)

Definition at line 60 of file pathsearch.h.

References nm.

◆ find_all()

std::list< std::string > octave::directory_path::find_all ( const std::string nm)

Definition at line 75 of file

References kpse_all_path_search(), m_expanded_path, m_initialized, and nm.

◆ find_all_first_of()

std::list< std::string > octave::directory_path::find_all_first_of ( const std::list< std::string > &  names)

Definition at line 90 of file

References kpse_all_path_find_first_of(), m_expanded_path, and m_initialized.

◆ find_first()

std::string octave::directory_path::find_first ( const std::string nm)

Definition at line 70 of file

References kpse_path_search(), m_expanded_path, m_initialized, and nm.

◆ find_first_of()

std::string octave::directory_path::find_first_of ( const std::list< std::string > &  names)

Definition at line 83 of file

References kpse_path_find_first_of(), m_expanded_path, and m_initialized.

◆ init()

void octave::directory_path::init ( void  )

◆ is_path_sep()

static bool octave::directory_path::is_path_sep ( char  c)

Definition at line 81 of file pathsearch.h.

References c.

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

◆ operator=()

directory_path& octave::directory_path::operator= ( const directory_path )

◆ path_sep_char()

char octave::directory_path::path_sep_char ( void  )

Definition at line 122 of file

Referenced by in_path_list(), and split_path().

◆ path_sep_str()

◆ rehash()

void octave::directory_path::rehash ( void  )

Definition at line 69 of file pathsearch.h.

◆ set()

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

Definition at line 47 of file pathsearch.h.

References s.

Member Data Documentation

◆ m_default_path

std::string octave::directory_path::m_default_path

Definition at line 90 of file pathsearch.h.

Referenced by init().

◆ m_expanded_path

std::string octave::directory_path::m_expanded_path

Definition at line 97 of file pathsearch.h.

Referenced by find_all(), find_all_first_of(), find_first(), find_first_of(), and init().

◆ m_initialized

bool octave::directory_path::m_initialized

◆ m_orig_path

std::string octave::directory_path::m_orig_path

Definition at line 86 of file pathsearch.h.

Referenced by directory_path(), and init().

◆ m_path_elements

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

Definition at line 100 of file pathsearch.h.

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

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