#include "symscope.h"
Public Member Functions | |
symbol_scope (const std::shared_ptr< symbol_scope_rep > new_rep=nullptr) | |
symbol_scope (const std::string &name) | |
symbol_scope (const symbol_scope &)=default | |
~symbol_scope (void)=default | |
void | cache_dir_name (const std::string &name) |
void | cache_fcn_file_name (const std::string &name) |
void | cache_fcn_name (const std::string &name) |
void | cache_name (const std::string &name) |
void | cache_parent_fcn_names (const std::list< std::string > &names) |
std::string | dir_name (void) const |
octave_value | dump (void) const |
symbol_scope | dup (void) const |
void | erase_subfunctions (void) |
std::string | fcn_file_name (void) const |
std::string | fcn_name (void) const |
octave_value | find_subfunction (const std::string &name) const |
symbol_record | find_symbol (const std::string &name) |
std::shared_ptr< symbol_scope_rep > | get_rep (void) const |
bool | has_subfunctions (void) const |
symbol_record | insert (const std::string &name) |
symbol_record | insert_local (const std::string &name) |
void | insert_symbol_record (symbol_record &sr) |
void | install_nestfunction (const std::string &name, const octave_value &fval, const symbol_scope &fcn_scope) |
void | install_subfunction (const std::string &name, const octave_value &fval) |
bool | is_nested (void) const |
bool | is_parent (void) const |
bool | is_primary_fcn_scope (void) const |
bool | is_relative (const symbol_scope &scope) const |
bool | is_static (void) const |
bool | is_valid (void) const |
std::list< octave_value > | localfunctions (void) const |
void | lock_subfunctions (void) |
bool | look_nonlocal (const std::string &name, size_t offset, symbol_record &result) |
symbol_record | lookup_symbol (const std::string &name) const |
void | mark_primary_fcn_scope (void) |
void | mark_static (void) |
void | mark_subfunctions_in_scope_as_private (const std::string &class_name) |
std::string | name (void) const |
size_t | nesting_depth (void) const |
size_t | num_symbols (void) const |
operator bool () const | |
symbol_scope & | operator= (const symbol_scope &)=default |
std::list< std::string > | parent_fcn_names (void) const |
std::shared_ptr< symbol_scope_rep > | parent_scope (void) const |
octave_value & | persistent_varref (size_t data_offset) |
octave_value | persistent_varval (size_t data_offset) const |
std::shared_ptr< symbol_scope_rep > | primary_parent_scope (void) const |
void | rename (const std::string &old_name, const std::string &new_name) |
void | set_nesting_depth (size_t depth) |
void | set_parent (const symbol_scope &p) |
void | set_primary_parent (const symbol_scope &p) |
void | set_user_code (octave_user_code *code) |
void | stash_subfunction_names (const std::list< std::string > &names) |
std::list< std::string > | subfunction_names (void) const |
std::map< std::string, octave_value > | subfunctions (void) const |
std::list< symbol_record > | symbol_list (void) const |
std::map< std::string, symbol_record > & | symbols (void) |
const std::map< std::string, symbol_record > & | symbols (void) const |
void | unlock_subfunctions (void) |
void | update_nest (void) |
octave_user_code * | user_code (void) const |
Private Attributes | |
std::shared_ptr< symbol_scope_rep > | m_rep |
Friends | |
bool | operator!= (const symbol_scope &a, const symbol_scope &b) |
bool | operator== (const symbol_scope &a, const symbol_scope &b) |
Definition at line 382 of file symscope.h.
|
inline |
Definition at line 387 of file symscope.h.
Referenced by dup().
|
inline |
Definition at line 393 of file symscope.h.
|
default |
|
default |
|
inline |
Definition at line 641 of file symscope.h.
Referenced by octave::tree_anon_fcn_handle::evaluate(), octave::base_parser::finish_function(), and octave::base_parser::make_script().
|
inline |
Definition at line 635 of file symscope.h.
Referenced by octave::tree_anon_fcn_handle::evaluate(), octave::base_parser::finish_function(), and octave::base_parser::make_script().
|
inline |
Definition at line 595 of file symscope.h.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 584 of file symscope.h.
Referenced by octave::base_parser::finish_function(), octave::base_parser::make_anon_fcn_handle(), octave::base_parser::make_fcn_name(), octave::base_parser::make_script(), and octave::anonymous_fcn_handle::parse().
|
inline |
Definition at line 606 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 652 of file symscope.h.
References m_rep.
Referenced by octave::fcn_info::fcn_info_rep::find_scoped_function(), and octave::fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 574 of file symscope.h.
References m_rep, and octave_value().
Referenced by octave_user_code::dump().
|
inline |
Definition at line 465 of file symscope.h.
References symbol_scope(), and m_rep.
Referenced by octave::tree_anon_fcn_handle::dup(), and octave::tree_anon_fcn_handle::evaluate().
|
inline |
Definition at line 543 of file symscope.h.
References m_rep.
Referenced by octave_user_function::erase_subfunctions().
|
inline |
Definition at line 647 of file symscope.h.
References m_rep.
Referenced by octave::fcn_info::fcn_info_rep::find_scoped_function(), and octave::fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 590 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 519 of file symscope.h.
References m_rep, name(), and octave_value().
Referenced by octave::fcn_info::fcn_info_rep::find_scoped_function(), octave::stack_frame::find_subfunction(), octave_user_function::find_subfunction(), and octave::fcn_info::fcn_info_rep::x_builtin_find().
|
inline |
Definition at line 482 of file symscope.h.
Referenced by octave::tree_identifier::dup(), octave::jit_convert::get_variable(), octave::script_stack_frame::insert_symbol(), octave::user_fcn_stack_frame::insert_symbol(), and octave::scope_stack_frame::insert_symbol().
|
inline |
Definition at line 685 of file symscope.h.
References m_rep.
Referenced by is_relative(), set_parent(), and set_primary_parent().
|
inline |
Definition at line 555 of file symscope.h.
References m_rep.
Referenced by octave_user_function::has_subfunctions().
|
inline |
Definition at line 493 of file symscope.h.
Referenced by octave::base_lexer::handle_identifier(), and octave::script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 412 of file symscope.h.
|
inline |
Definition at line 417 of file symscope.h.
References m_rep.
|
inline |
Definition at line 511 of file symscope.h.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 504 of file symscope.h.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 423 of file symscope.h.
References m_rep.
Referenced by octave::user_fcn_stack_frame::get_access_link(), octave::script_stack_frame::get_val_offsets_internal(), and octave::script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 428 of file symscope.h.
References m_rep.
|
inline |
|
inline |
Definition at line 668 of file symscope.h.
|
inline |
Definition at line 444 of file symscope.h.
References m_rep.
|
inline |
Definition at line 403 of file symscope.h.
References m_rep.
Referenced by octave::tree_anon_fcn_handle::has_parent_scope().
std::list< octave_value > octave::symbol_scope::localfunctions | ( | void | ) | const |
Definition at line 327 of file symscope.cc.
References is_primary_fcn_scope(), and m_rep.
|
inline |
Definition at line 524 of file symscope.h.
References m_rep.
Referenced by octave_user_function::lock_subfunctions().
|
inline |
Definition at line 679 of file symscope.h.
|
inline |
Definition at line 488 of file symscope.h.
Referenced by octave::script_stack_frame::insert_symbol(), octave::user_fcn_stack_frame::insert_symbol(), octave::scope_stack_frame::insert_symbol(), octave::script_stack_frame::lookup_symbol(), octave::user_fcn_stack_frame::lookup_symbol(), and octave::scope_stack_frame::lookup_symbol().
|
inline |
Definition at line 657 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::push_fcn_symtab().
|
inline |
Definition at line 449 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::make_anon_fcn_handle().
|
inline |
Definition at line 549 of file symscope.h.
References m_rep.
Referenced by octave_user_function::mark_as_private_function().
|
inline |
Definition at line 579 of file symscope.h.
References m_rep.
Referenced by octave::symbol_info_accumulator::append_list(), cache_dir_name(), cache_fcn_file_name(), cache_fcn_name(), cache_name(), octave::display_scope(), find_subfunction(), find_symbol(), insert(), insert_local(), install_nestfunction(), install_subfunction(), look_nonlocal(), and lookup_symbol().
|
inline |
Definition at line 439 of file symscope.h.
References m_rep.
Referenced by octave::tree_anon_fcn_handle::evaluate(), and octave::user_fcn_stack_frame::get_access_link().
|
inline |
Definition at line 407 of file symscope.h.
References m_rep.
Referenced by octave::display_scope(), octave::user_fcn_stack_frame::get_num_symbols(), octave::script_stack_frame::get_num_symbols(), and octave::script_stack_frame::set_script_offsets().
|
inlineexplicit |
Definition at line 405 of file symscope.h.
References m_rep.
|
default |
|
inline |
Definition at line 601 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::finish_function(), and octave::symbol_scope_rep::localfunctions().
|
inline |
Definition at line 455 of file symscope.h.
References m_rep.
Referenced by octave::script_stack_frame::get_val_offsets_internal(), octave_user_function::parent_fcn_scope(), and octave::script_stack_frame::set_script_offsets_internal().
|
inline |
Definition at line 470 of file symscope.h.
References m_rep.
Referenced by octave::script_stack_frame::varref(), octave::user_fcn_stack_frame::varref(), and octave::scope_stack_frame::varref().
|
inline |
Definition at line 477 of file symscope.h.
References m_rep, and octave_value().
Referenced by octave::script_stack_frame::varval(), octave::user_fcn_stack_frame::varval(), and octave::scope_stack_frame::varval().
|
inline |
Definition at line 460 of file symscope.h.
References m_rep.
|
inline |
Definition at line 498 of file symscope.h.
References m_rep.
Referenced by octave::main_window::handle_rename_variable_request().
|
inline |
Definition at line 433 of file symscope.h.
References m_rep.
Referenced by octave::tree_anon_fcn_handle::evaluate(), and octave::base_parser::finish_function().
|
inline |
Definition at line 623 of file symscope.h.
References get_rep(), and m_rep.
Referenced by octave::tree_anon_fcn_handle::evaluate(), octave::base_parser::finish_function(), and octave_user_function::stash_parent_fcn_scope().
|
inline |
Definition at line 629 of file symscope.h.
References get_rep(), and m_rep.
Referenced by octave::tree_anon_fcn_handle::evaluate(), and octave::base_parser::finish_function().
|
inline |
Definition at line 617 of file symscope.h.
References m_rep.
Referenced by octave_user_code::~octave_user_code().
|
inline |
Definition at line 560 of file symscope.h.
References m_rep.
Referenced by octave_user_function::stash_subfunction_names().
|
inline |
Definition at line 566 of file symscope.h.
References m_rep.
Referenced by octave_user_function::subfunction_names().
|
inline |
Definition at line 536 of file symscope.h.
References m_rep.
Referenced by octave_user_function::subfunctions().
|
inline |
Definition at line 714 of file symscope.h.
References m_rep.
Referenced by octave::symbol_info_accumulator::append_list(), octave::symbol_cleaner::clean_frame(), octave::user_fcn_stack_frame::clear_values(), and octave::display_scope().
|
inline |
Definition at line 707 of file symscope.h.
References m_rep.
|
inline |
Definition at line 700 of file symscope.h.
References m_rep.
Referenced by octave::script_stack_frame::get_val_offsets_internal(), octave::script_stack_frame::set_script_offsets(), octave::script_stack_frame::set_script_offsets_internal(), and octave::stack_frame::variable_names().
|
inline |
Definition at line 530 of file symscope.h.
References m_rep.
Referenced by octave_user_function::unlock_subfunctions().
|
inline |
Definition at line 673 of file symscope.h.
References m_rep.
Referenced by octave::base_parser::finish_function().
|
inline |
Definition at line 612 of file symscope.h.
References m_rep.
Referenced by octave::find_private_file().
|
friend |
Definition at line 695 of file symscope.h.
|
friend |
Definition at line 690 of file symscope.h.
|
private |
Definition at line 723 of file symscope.h.
Referenced by cache_dir_name(), cache_fcn_file_name(), cache_fcn_name(), cache_name(), cache_parent_fcn_names(), dir_name(), dump(), dup(), erase_subfunctions(), fcn_file_name(), fcn_name(), find_subfunction(), find_symbol(), get_rep(), has_subfunctions(), insert(), insert_local(), insert_symbol_record(), install_nestfunction(), install_subfunction(), is_nested(), is_parent(), is_primary_fcn_scope(), is_relative(), is_static(), is_valid(), localfunctions(), lock_subfunctions(), look_nonlocal(), lookup_symbol(), mark_primary_fcn_scope(), mark_static(), mark_subfunctions_in_scope_as_private(), name(), nesting_depth(), num_symbols(), operator bool(), parent_fcn_names(), parent_scope(), persistent_varref(), persistent_varval(), primary_parent_scope(), rename(), set_nesting_depth(), set_parent(), set_primary_parent(), set_user_code(), stash_subfunction_names(), subfunction_names(), subfunctions(), symbol_list(), symbols(), unlock_subfunctions(), update_nest(), and user_code().