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

#include "pathsearch.h"

Public Member Functions

 directory_path (const directory_path &)=default
 
 directory_path (const std::string &s="")
 
 ~directory_path ()=default
 
std::list< std::string > all_directories ()
 
std::list< std::string > elements ()
 
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_pathoperator= (const directory_path &)=default
 
void rehash ()
 
void set (const std::string &s)
 

Static Public Member Functions

static bool is_path_sep (char c)
 
static char path_sep_char ()
 
static std::string path_sep_str ()
 

Detailed Description

Definition at line 36 of file pathsearch.h.

Constructor & Destructor Documentation

◆ directory_path() [1/2]

directory_path::directory_path ( const std::string &  s = "")

Definition at line 42 of file pathsearch.cc.

◆ directory_path() [2/2]

directory_path::directory_path ( const directory_path )
default

◆ ~directory_path()

directory_path::~directory_path ( )
default

Member Function Documentation

◆ all_directories()

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

Definition at line 57 of file pathsearch.cc.

References kpse_element_dir().

◆ elements()

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

Definition at line 51 of file pathsearch.cc.

◆ find()

std::string directory_path::find ( const std::string &  nm)
inline

Definition at line 63 of file pathsearch.h.

◆ find_all()

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

Definition at line 82 of file pathsearch.cc.

References kpse_all_path_search().

◆ find_all_first_of()

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

Definition at line 97 of file pathsearch.cc.

References kpse_all_path_find_first_of().

Referenced by octave::search_path_for_all_files().

◆ find_first()

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

Definition at line 76 of file pathsearch.cc.

References kpse_path_search().

◆ find_first_of()

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

Definition at line 90 of file pathsearch.cc.

References kpse_path_find_first_of().

◆ is_path_sep()

static bool directory_path::is_path_sep ( char  c)
inlinestatic

Definition at line 84 of file pathsearch.h.

◆ operator=()

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

◆ path_sep_char()

char directory_path::path_sep_char ( )
static

Definition at line 128 of file pathsearch.cc.

◆ path_sep_str()

std::string directory_path::path_sep_str ( )
static

◆ rehash()

void directory_path::rehash ( )
inline

Definition at line 72 of file pathsearch.h.

◆ set()

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

Definition at line 50 of file pathsearch.h.


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