GNU Octave  3.8.0
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
dir_path Class Reference

#include "pathsearch.h"

Collaboration diagram for dir_path:
Collaboration graph
[legend]

Classes

class  static_members

Public Member Functions

 dir_path (const std::string &s=std::string(), const std::string &d=std::string())
 dir_path (const dir_path &dp)
 ~dir_path (void)
string_vector all_directories (void)
string_vector elements (void)
std::string find (const std::string &nm)
string_vector find_all (const std::string &)
string_vector find_all_first_of (const string_vector &names)
std::string find_first (const std::string &)
std::string find_first_of (const string_vector &names)
dir_pathoperator= (const dir_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

bool initialized
std::string p
std::string p_default
std::string p_orig
string_vector pv

Detailed Description

Definition at line 30 of file pathsearch.h.

Constructor & Destructor Documentation

dir_path::dir_path ( const std::string &  s = std::string (),
const std::string &  d = std::string () 
)
inline

Definition at line 36 of file pathsearch.h.

dir_path::dir_path ( const dir_path dp)
inline

Definition at line 44 of file pathsearch.h.

dir_path::~dir_path ( void  )
inline

Definition at line 59 of file pathsearch.h.

Member Function Documentation

string_vector dir_path::all_directories ( void  )
string_vector dir_path::elements ( void  )

Definition at line 69 of file pathsearch.cc.

References initialized, and pv.

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

Definition at line 72 of file pathsearch.h.

string_vector dir_path::find_all ( const std::string &  nm)

Definition at line 126 of file pathsearch.cc.

References initialized, kpse_all_path_search(), and p.

string_vector dir_path::find_all_first_of ( const string_vector names)

Definition at line 139 of file pathsearch.cc.

References initialized, kpse_all_path_find_first_of(), and p.

Referenced by search_path_for_all_files().

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

Definition at line 120 of file pathsearch.cc.

References initialized, kpse_path_search(), and p.

std::string dir_path::find_first_of ( const string_vector names)
void dir_path::init ( void  )
private
static bool dir_path::is_path_sep ( char  c)
inlinestatic

Definition at line 100 of file pathsearch.h.

dir_path& dir_path::operator= ( const dir_path dp)
inline

Definition at line 49 of file pathsearch.h.

References initialized, initialized, p, p_default, p_orig, and pv.

static char dir_path::path_sep_char ( void  )
inlinestatic

Definition at line 85 of file pathsearch.h.

Referenced by Fpathsep(), in_path_list(), and split_path().

static void dir_path::path_sep_char ( char  c)
inlinestatic

Definition at line 90 of file pathsearch.h.

static std::string dir_path::path_sep_str ( void  )
inlinestatic
void dir_path::rehash ( void  )
inline

Definition at line 79 of file pathsearch.h.

References initialized.

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

Definition at line 61 of file pathsearch.h.

References initialized.

Member Data Documentation

bool dir_path::initialized
private
std::string dir_path::p
private

Definition at line 116 of file pathsearch.h.

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

std::string dir_path::p_default
private

Definition at line 109 of file pathsearch.h.

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

std::string dir_path::p_orig
private

Definition at line 105 of file pathsearch.h.

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

string_vector dir_path::pv
private

Definition at line 119 of file pathsearch.h.

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


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