GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load_path::package_info Class Reference
Collaboration diagram for load_path::package_info:

Public Member Functions

 package_info (const package_info &l)
 
 package_info (const std::string &package_name="")
 
 ~package_info (void)=default
 
void add (const dir_info &di, bool at_end, bool updating)
 
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)
 
package_infooperator= (const package_info &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, bool updating)
 
void add_to_method_map (const dir_info &di, bool at_end)
 
void add_to_private_fcn_map (const dir_info &di)
 
bool check_file_type (std::string &fname, int type, int possible_types, const std::string &fcn, const char *who) const
 
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 print_fcn_list (std::ostream &os, const dir_info::fcn_file_map_type &lst) const
 
void print_types (std::ostream &os, int types) const
 
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 > m_dir_list
 
fcn_map_type m_fcn_map
 
method_map_type m_method_map
 
std::string m_package_name
 
private_fcn_map_type m_private_fcn_map
 

Detailed Description

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

Constructor & Destructor Documentation

◆ package_info() [1/2]

load_path::package_info::package_info ( const std::string &  package_name = "")
inline

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

◆ package_info() [2/2]

load_path::package_info::package_info ( const package_info l)
inline

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

◆ ~package_info()

load_path::package_info::~package_info ( void  )
default

Member Function Documentation

◆ add()

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

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

References load_path::dir_info::dir_name.

Referenced by load_path::add().

◆ add_to_fcn_map()

◆ add_to_method_map()

void load_path::package_info::add_to_method_map ( const dir_info di,
bool  at_end 
)
private

◆ add_to_private_fcn_map()

void load_path::package_info::add_to_private_fcn_map ( const dir_info di)
private

◆ check_file_type()

bool load_path::package_info::check_file_type ( std::string &  fname,
int  type,
int  possible_types,
const std::string &  fcn,
const char *  who 
) const
private

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

References error(), load_path::M_FILE, load_path::MEX_FILE, and load_path::OCT_FILE.

◆ clear()

void load_path::package_info::clear ( void  )
inline

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

Referenced by load_path::clear(), and load_path::update().

◆ display()

void load_path::package_info::display ( std::ostream &  out) const

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

References concat().

Referenced by load_path::display().

◆ fcn_names()

string_vector load_path::package_info::fcn_names ( void  ) const

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

References len.

Referenced by load_path::fcn_names().

◆ find_fcn()

std::string load_path::package_info::find_fcn ( const std::string &  fcn,
std::string &  dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const

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

References concat(), fi, and load_path::find_method().

◆ find_method()

std::string load_path::package_info::find_method ( const std::string &  class_name,
const std::string &  meth,
std::string &  dir_name,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const

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

References concat(), fi, and m.

◆ find_private_fcn()

std::string load_path::package_info::find_private_fcn ( const std::string &  dir,
const std::string &  fcn,
int  type = M_FILE | OCT_FILE | MEX_FILE 
) const

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

References concat().

◆ methods()

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

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

◆ move()

void load_path::package_info::move ( const dir_info di,
bool  at_end 
)

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

References load_path::dir_info::abs_dir_name, load_path::dir_info::fcn_files, and find().

Referenced by load_path::move().

◆ move_fcn_map()

void load_path::package_info::move_fcn_map ( const std::string &  dir,
const string_vector fcn_files,
bool  at_end 
)
private

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

References len, and string_vector::numel().

◆ move_method_map()

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

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

References concat().

◆ operator=()

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

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

References m_dir_list, m_fcn_map, m_method_map, m_package_name, and m_private_fcn_map.

◆ overloads()

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

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

References m.

Referenced by load_path::overloads().

◆ print_fcn_list()

void load_path::package_info::print_fcn_list ( std::ostream &  os,
const dir_info::fcn_file_map_type lst 
) const
private

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

◆ print_types()

void load_path::package_info::print_types ( std::ostream &  os,
int  types 
) const
private

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

References load_path::M_FILE, load_path::MEX_FILE, and load_path::OCT_FILE.

◆ remove()

void load_path::package_info::remove ( const dir_info di)

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

References load_path::dir_info::abs_dir_name, and load_path::dir_info::fcn_files.

Referenced by load_path::remove().

◆ remove_fcn_map()

void load_path::package_info::remove_fcn_map ( const std::string &  dir,
const string_vector fcn_files 
)
private

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

References len, and string_vector::numel().

◆ remove_method_map()

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

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

References concat().

◆ remove_private_fcn_map()

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

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

Member Data Documentation

◆ m_dir_list

std::list<std::string> load_path::package_info::m_dir_list
private

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

Referenced by operator=().

◆ m_fcn_map

fcn_map_type load_path::package_info::m_fcn_map
private

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

Referenced by operator=().

◆ m_method_map

method_map_type load_path::package_info::m_method_map
private

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

Referenced by operator=().

◆ m_package_name

std::string load_path::package_info::m_package_name
private

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

Referenced by operator=().

◆ m_private_fcn_map

private_fcn_map_type load_path::package_info::m_private_fcn_map
private

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

Referenced by operator=().


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