GNU Octave  4.0.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
Public Member Functions | Private Member Functions | Private Attributes | List of all members
load_path::loader Class Reference
Collaboration diagram for load_path::loader:
Collaboration graph
[legend]

Public Member Functions

 loader (const std::string &pfx=std::string())
 
 loader (const loader &l)
 
 ~loader (void)
 
void add (const dir_info &di, bool at_end)
 
void clear (void)
 
void display (std::ostream &out) const
 
string_vector fcn_names (void) const
 
std::string find_fcn (const std::string &fcn, std::string &dir_name, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::string find_method (const std::string &class_name, const std::string &meth, std::string &dir_name, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::string find_private_fcn (const std::string &dir, const std::string &fcn, int type=M_FILE|OCT_FILE|MEX_FILE) const
 
std::list< std::string > methods (const std::string &class_name) const
 
void move (const dir_info &di, bool at_end)
 
loaderoperator= (const loader &l)
 
void overloads (const std::string &meth, std::list< std::string > &l) const
 
void remove (const dir_info &di)
 

Private Member Functions

void add_to_fcn_map (const dir_info &di, bool at_end)
 
void add_to_method_map (const dir_info &di, bool at_end)
 
void add_to_private_fcn_map (const dir_info &di)
 
void move_fcn_map (const std::string &dir, const string_vector &fcn_files, bool at_end)
 
void move_method_map (const std::string &dir, bool at_end)
 
void remove_fcn_map (const std::string &dir, const string_vector &fcn_files)
 
void remove_method_map (const std::string &dir)
 
void remove_private_fcn_map (const std::string &dir)
 

Private Attributes

std::list< std::string > dir_list
 
fcn_map_type fcn_map
 
method_map_type method_map
 
std::string prefix
 
private_fcn_map_type private_fcn_map
 

Detailed Description

Definition at line 490 of file load-path.h.

Constructor & Destructor Documentation

load_path::loader::loader ( const std::string &  pfx = std::string ())
inline

Definition at line 493 of file load-path.h.

load_path::loader::loader ( const loader l)
inline

Definition at line 497 of file load-path.h.

load_path::loader::~loader ( void  )
inline

Definition at line 501 of file load-path.h.

Member Function Documentation

void load_path::loader::add ( const dir_info di,
bool  at_end 
)
inline

Definition at line 517 of file load-path.h.

References load_path::dir_info::dir_name.

Referenced by load_path::add().

void load_path::loader::add_to_fcn_map ( const dir_info di,
bool  at_end 
)
private
void load_path::loader::add_to_method_map ( const dir_info di,
bool  at_end 
)
private
void load_path::loader::add_to_private_fcn_map ( const dir_info di)
private
void load_path::loader::clear ( void  )
inline

Definition at line 535 of file load-path.h.

Referenced by load_path::do_clear(), and load_path::do_update().

void load_path::loader::display ( std::ostream &  out) const
string_vector load_path::loader::fcn_names ( void  ) const

Definition at line 1696 of file load-path.cc.

Referenced by load_path::do_fcn_names().

std::string load_path::loader::find_fcn ( const std::string &  fcn,
std::string &  dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const
std::string load_path::loader::find_method ( const std::string &  class_name,
const std::string &  meth,
std::string &  dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const
std::string load_path::loader::find_private_fcn ( const std::string &  dir,
const std::string &  fcn,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const

Definition at line 1142 of file load-path.cc.

References load_path::check_file_type(), and file_ops::concat().

std::list< std::string > load_path::loader::methods ( const std::string &  class_name) const

Definition at line 1220 of file load-path.cc.

void load_path::loader::move ( const dir_info di,
bool  at_end 
)
void load_path::loader::move_fcn_map ( const std::string &  dir,
const string_vector fcn_files,
bool  at_end 
)
private

Definition at line 408 of file load-path.cc.

References fi, and Array< T >::length().

void load_path::loader::move_method_map ( const std::string &  dir,
bool  at_end 
)
private

Definition at line 457 of file load-path.cc.

References file_ops::concat(), and fi.

loader& load_path::loader::operator= ( const loader l)
inline

Definition at line 503 of file load-path.h.

References dir_list, fcn_map, method_map, prefix, and private_fcn_map.

void load_path::loader::overloads ( const std::string &  meth,
std::list< std::string > &  l 
) const

Definition at line 1273 of file load-path.cc.

Referenced by load_path::do_overloads().

void load_path::loader::remove ( const dir_info di)
void load_path::loader::remove_fcn_map ( const std::string &  dir,
const string_vector fcn_files 
)
private

Definition at line 803 of file load-path.cc.

References Array< T >::length().

void load_path::loader::remove_method_map ( const std::string &  dir)
private

Definition at line 852 of file load-path.cc.

References file_ops::concat().

void load_path::loader::remove_private_fcn_map ( const std::string &  dir)
private

Definition at line 843 of file load-path.cc.

Member Data Documentation

std::list<std::string> load_path::loader::dir_list
private

Definition at line 589 of file load-path.h.

Referenced by operator=().

fcn_map_type load_path::loader::fcn_map
private

Definition at line 591 of file load-path.h.

Referenced by operator=().

method_map_type load_path::loader::method_map
private

Definition at line 595 of file load-path.h.

Referenced by operator=().

std::string load_path::loader::prefix
private

Definition at line 587 of file load-path.h.

Referenced by operator=().

private_fcn_map_type load_path::loader::private_fcn_map
private

Definition at line 593 of file load-path.h.

Referenced by operator=().


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