#include "symtab.h"
Public Types | |
typedef octave::fcn_info | fcn_info |
typedef octave::symbol_scope | scope |
typedef octave::symbol_record | symbol_record |
Private Types | |
typedef std::map< std::string, std::set< std::string > >::const_iterator | class_precedence_table_const_iterator |
typedef std::map< std::string, std::set< std::string > >::iterator | class_precedence_table_iterator |
typedef std::map< std::string, std::list< std::string > >::const_iterator | const_parent_map_iterator |
typedef std::map< std::string, fcn_info >::const_iterator | fcn_table_const_iterator |
typedef std::map< std::string, fcn_info >::iterator | fcn_table_iterator |
typedef std::map< std::string, octave_value >::const_iterator | global_symbols_const_iterator |
typedef std::map< std::string, octave_value >::iterator | global_symbols_iterator |
typedef std::map< std::string, std::list< std::string > >::iterator | parent_map_iterator |
Private Member Functions | |
octave_value | dump_fcn_table_map (void) const |
void | install_builtins (void) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
delete |
|
default |
|
inline |
Definition at line 632 of file symtab.h.
Referenced by octave_class::octave_class().
|
inline |
Definition at line 474 of file symtab.h.
References fcn, octave::fcn_info::install_built_in_function(), octave_function::is_defined(), name, and panic().
Referenced by alias_builtin().
|
inline |
|
inline |
|
inline |
Definition at line 140 of file symtab.h.
Referenced by octave_link::set_workspace().
|
inline |
Definition at line 594 of file symtab.h.
References fcn, octave_function::is_defined(), retval, and octave_value::sort().
octave_value octave::symbol_table::builtin_find | ( | const std::string & | name | ) |
Definition at line 367 of file symtab.cc.
References octave::fcn_info::builtin_find(), fcn, octave_function::is_defined(), m_fcn_table, name, octave_value(), and p.
void octave::symbol_table::cleanup | ( | void | ) |
Definition at line 534 of file symtab.cc.
References clear_all(), m_class_precedence_table, m_fcn_table, and m_parent_map.
|
inline |
Definition at line 448 of file symtab.h.
References octave::fcn_info::clear_autoload_function(), octave::fcn_info::clear_user_function(), name, and p.
Referenced by octave::dynamic_loader::clear(), and octave::dynamic_loader::clear_function().
|
inline |
|
inline |
void octave::symbol_table::clear_global | ( | const std::string & | name | ) |
Definition at line 301 of file symtab.cc.
References octave::symbol_scope::clear_variable(), m_global_scope, and name.
void octave::symbol_table::clear_global_pattern | ( | const std::string & | pattern | ) |
Definition at line 307 of file symtab.cc.
References octave::symbol_scope::clear_variable_pattern(), m_global_scope, and pattern().
|
inline |
|
inline |
Definition at line 397 of file symtab.h.
References clear_function(), and name.
|
inline |
|
inline |
Definition at line 432 of file symtab.h.
References octave::fcn_info::clear_user_function(), name, and p.
Referenced by octave::file_editor_tab::exit_debug_and_clear().
|
inline |
Definition at line 612 of file symtab.h.
References fcn, octave_function::is_defined(), retval, and octave_value::sort().
|
inline |
Definition at line 87 of file symtab.h.
Referenced by F__current_scope__(), octave::final_index_error(), and octave::call_stack::push().
|
inline |
Definition at line 77 of file symtab.h.
Referenced by do_isglobal(), do_who(), F__current_scope__(), octave::tree_evaluator::get_current_scope(), is_variable(), octave::call_stack::push(), octave_link::set_workspace(), octave::tree_evaluator::visit_anon_fcn_handle(), octave::tree_evaluator::visit_decl_elt(), and octave::tree_evaluator::visit_function_def().
octave_value octave::symbol_table::dump | ( | void | ) | const |
Definition at line 523 of file symtab.cc.
References octave::dump_container_map(), dump_fcn_table_map(), m_class_precedence_table, m_parent_map, and octave_value().
|
private |
Definition at line 544 of file symtab.cc.
References octave::fcn_info::dump(), m_fcn_table, nm, octave_value(), and string.
Referenced by dump().
octave_value octave::symbol_table::fcn_table_find | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list () , |
||
bool | local_funcs = true |
||
) |
Definition at line 389 of file symtab.cc.
References fcn, octave::fcn_info::find(), octave_function::is_defined(), m_fcn_table, name, octave_value(), and p.
Referenced by octave::symbol_scope_rep::find().
octave_value octave::symbol_table::find | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list () , |
||
bool | skip_variables = false , |
||
bool | local_funcs = true |
||
) |
Definition at line 358 of file symtab.cc.
References octave::symbol_scope::find(), m_current_scope, name, and octave_value().
Referenced by octave::file_editor_tab::exit_debug_and_clear(), octave::jit_typeinfo::find_builtin(), and find_function().
|
inline |
Definition at line 242 of file symtab.h.
References name, octave_value(), and p.
|
inline |
Definition at line 233 of file symtab.h.
References name, octave_value(), and p.
|
inline |
Definition at line 270 of file symtab.h.
References name, octave_value(), and p.
octave_value octave::symbol_table::find_function | ( | const std::string & | name, |
const octave_value_list & | args = octave_value_list () , |
||
bool | local_funcs = true |
||
) |
Definition at line 412 of file symtab.cc.
References octave::sys::file_ops::dir_sep_str(), find(), find_method(), octave_value::function_value(), octave_value::is_defined(), m_current_scope, m_top_scope, method, name, retval, octave_function::scope(), and string.
Referenced by octave::final_index_error(), octave::symbol_record::find_function(), find_submethod(), get_mapper_fun_options(), octave::get_user_code(), octave::jit_convert::get_variable(), is_valid_function(), make_fcn_handle(), octave_fcn_handle::set_fcn(), and octave::tree_evaluator::visit_colon_expression().
|
inline |
Definition at line 119 of file symtab.h.
References octave::symbol_record::mark_global(), and name.
|
inline |
Definition at line 200 of file symtab.h.
References fcn, octave::fcn_info::find_method(), octave_function::is_defined(), name, and p.
Referenced by octave_fcn_handle::call(), find_function(), octave_class::index_vector(), octave_class::is_true(), make_fcn_handle(), octave_class::numel(), octave_class::reconstruct_exemplar(), octave_class::size(), octave_class::string_vector_value(), octave_class::subsasgn_common(), and octave_class::subsref().
octave_value octave::symbol_table::find_submethod | ( | const std::string & | name, |
const std::string & | dispatch_type | ||
) |
Definition at line 466 of file symtab.cc.
References octave::sys::file_ops::dir_sep_str(), fcn, find_function(), octave_value::function_value(), octave_value::is_defined(), m_current_scope, m_top_scope, name, octave_function::scope(), and string.
|
inline |
Definition at line 109 of file symtab.h.
References octave::symbol_scope::find_symbol(), and name.
Referenced by do_who(), and octave::jit_convert::get_variable().
|
inline |
|
inline |
Definition at line 262 of file symtab.h.
References name, octave_value(), and p.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 168 of file symtab.h.
Referenced by mexPutVariable().
|
inline |
Definition at line 74 of file symtab.h.
Referenced by install_loaded_variable(), and octave::tree_evaluator::visit_decl_elt().
|
inline |
|
inline |
Definition at line 174 of file symtab.h.
References name.
Referenced by octave::symbol_scope_rep::find(), and mexGetVariable().
|
inline |
Definition at line 129 of file symtab.h.
References octave::symbol_scope::inherit().
Referenced by octave::tree_anon_fcn_handle::dup().
|
inline |
|
inline |
Definition at line 491 of file symtab.h.
References error(), octave::fcn_info::install_built_in_dispatch(), name, and p.
Referenced by install_builtin_dispatch().
|
inline |
Definition at line 347 of file symtab.h.
References fcn, octave::fcn_info::install_built_in_function(), name, and p.
Referenced by install___init_qt___functions(), install_builtin_function(), install_dld_function(), and install_mex_function().
|
private |
|
inline |
Definition at line 278 of file symtab.h.
References fcn, octave::fcn_info::install_cmdline_function(), name, and p.
Referenced by octave::tree_evaluator::visit_function_def().
|
inline |
|
inline |
|
inline |
Definition at line 192 of file symtab.h.
Referenced by octave::load_path::package_info::add_to_fcn_map().
bool octave::symbol_table::is_superiorto | ( | const std::string & | a, |
const std::string & | b | ||
) |
Definition at line 345 of file symtab.cc.
References a, b, m_class_precedence_table, and p.
Referenced by octave::get_dispatch_type(), and set_class_relationship().
|
delete |
|
inline |
Definition at line 639 of file symtab.h.
References for(), nm, and retval.
Referenced by octave_fcn_handle::call(), octave::fcn_info::fcn_info_rep::load_class_method(), and octave::out_of_date_check().
|
inline |
|
inline |
|
inline |
Definition at line 79 of file symtab.h.
References error().
Referenced by install_loaded_variable().
bool octave::symbol_table::set_class_relationship | ( | const std::string & | sup_class, |
const std::string & | inf_class | ||
) |
Definition at line 317 of file symtab.cc.
References is_superiorto(), and m_class_precedence_table.
|
inline |
Definition at line 92 of file symtab.h.
Referenced by do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), and read_mat5_binary_element().
|
inline |
Definition at line 97 of file symtab.h.
References octave::context, error(), and octave::symbol_scope::set_context().
Referenced by octave::call_stack::goto_base_frame(), octave::call_stack::goto_caller_frame(), octave::call_stack::goto_frame(), octave::call_stack::goto_frame_relative(), octave::call_stack::pop(), and octave::call_stack::push().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 75 of file symtab.h.
Referenced by octave::call_stack::call_stack(), and dump_octave_core().
|
inline |
Definition at line 561 of file symtab.h.
References retval, and octave_value::sort().
|
inline |
|
inline |
Definition at line 162 of file symtab.h.
References name, and octave_value().
|
private |
Definition at line 696 of file symtab.h.
Referenced by cleanup(), dump(), is_superiorto(), and set_class_relationship().
|
private |
Definition at line 714 of file symtab.h.
Referenced by find(), find_function(), and find_submethod().
|
private |
Definition at line 692 of file symtab.h.
Referenced by builtin_find(), cleanup(), dump_fcn_table_map(), and fcn_table_find().
|
private |
Definition at line 711 of file symtab.h.
Referenced by clear_global(), and clear_global_pattern().
|
private |
|
private |
Definition at line 712 of file symtab.h.
Referenced by find_function(), and find_submethod().