#include "symscope.h"
Public Member Functions | |
symbol_scope ()=delete | |
symbol_scope (const std::shared_ptr< symbol_scope_rep > new_rep) | |
symbol_scope (const std::string &name) | |
symbol_scope (const symbol_scope &)=default | |
~symbol_scope ()=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) |
std::string | dir_name () const |
octave_value | dump () const |
symbol_scope | dup () const |
void | erase_subfunctions () |
std::string | fcn_file_name () const |
std::string | fcn_name () 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 () const |
bool | has_subfunctions () 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 () const |
bool | is_parent () const |
bool | is_primary_fcn_scope () const |
bool | is_relative (const symbol_scope &scope) const |
bool | is_static () const |
bool | is_valid () const |
bool | is_variable (const std::string &nm) const |
std::list< octave_value > | localfunctions () const |
void | lock_subfunctions () |
bool | look_nonlocal (const std::string &name, std::size_t offset, symbol_record &result) |
symbol_record | lookup_symbol (const std::string &name) const |
void | mark_as_variable (const std::string &nm) |
void | mark_as_variables (const std::list< std::string > &lst) |
void | mark_primary_fcn_scope () |
void | mark_static () |
void | mark_subfunctions_in_scope_as_private (const std::string &class_name) |
std::string | name () const |
std::size_t | nesting_depth () const |
std::size_t | num_symbols () const |
operator bool () const | |
symbol_scope & | operator= (const symbol_scope &)=default |
std::list< std::string > | parent_fcn_names () const |
std::shared_ptr< symbol_scope_rep > | parent_scope () const |
octave_value & | persistent_varref (std::size_t data_offset) |
octave_value | persistent_varval (std::size_t data_offset) const |
std::shared_ptr< symbol_scope_rep > | primary_parent_scope () const |
void | rename (const std::string &old_name, const std::string &new_name) |
void | set_nesting_depth (std::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 () const |
std::map< std::string, octave_value > | subfunctions () const |
std::list< symbol_record > | symbol_list () const |
std::map< std::string, symbol_record > & | symbols () |
const std::map< std::string, symbol_record > & | symbols () const |
void | unlock_subfunctions () |
void | update_nest () |
octave_user_code * | user_code () const |
Static Public Member Functions | |
static symbol_scope | anonymous () |
static symbol_scope | invalid () |
Friends | |
bool | operator!= (const symbol_scope &a, const symbol_scope &b) |
bool | operator== (const symbol_scope &a, const symbol_scope &b) |
Definition at line 370 of file symscope.h.
|
delete |
Referenced by anonymous(), dup(), and invalid().
|
inline |
Definition at line 379 of file symscope.h.
|
inline |
Definition at line 390 of file symscope.h.
|
default |
|
default |
|
inlinestatic |
Definition at line 405 of file symscope.h.
References symbol_scope().
Referenced by base_parser::start_classdef_external_method().
|
inline |
Definition at line 642 of file symscope.h.
References name().
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), base_parser::finish_function(), and base_parser::make_script().
|
inline |
Definition at line 636 of file symscope.h.
References name().
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), base_parser::finish_function(), and base_parser::make_script().
|
inline |
Definition at line 602 of file symscope.h.
References name().
Referenced by base_parser::finish_function().
|
inline |
Definition at line 591 of file symscope.h.
References name().
Referenced by base_parser::finish_function(), base_parser::make_anon_fcn_handle(), base_parser::make_fcn_name(), and base_parser::make_script().
|
inline |
Definition at line 653 of file symscope.h.
|
inline |
Definition at line 581 of file symscope.h.
References octave_value().
|
inline |
Definition at line 472 of file symscope.h.
References symbol_scope().
Referenced by tree_anon_fcn_handle::dup(), and tree_evaluator::evaluate_anon_fcn_handle().
|
inline |
Definition at line 550 of file symscope.h.
|
inline |
Definition at line 648 of file symscope.h.
|
inline |
Definition at line 597 of file symscope.h.
|
inline |
Definition at line 526 of file symscope.h.
References name(), and octave_value().
Referenced by stack_frame::find_subfunction().
|
inline |
|
inline |
Definition at line 703 of file symscope.h.
Referenced by is_relative(), set_parent(), and set_primary_parent().
|
inline |
Definition at line 562 of file symscope.h.
|
inline |
Definition at line 500 of file symscope.h.
References name().
Referenced by base_parser::make_identifier().
|
inline |
Definition at line 419 of file symscope.h.
References name().
|
inline |
Definition at line 424 of file symscope.h.
|
inline |
Definition at line 518 of file symscope.h.
References name().
Referenced by base_parser::finish_function().
|
inline |
Definition at line 511 of file symscope.h.
References name().
Referenced by base_parser::finish_function().
|
inlinestatic |
Definition at line 400 of file symscope.h.
References symbol_scope().
Referenced by call_stack::current_scope(), tree_anon_fcn_handle::dup(), tree_evaluator::evaluate_anon_fcn_handle(), lexical_feedback::symbol_table_context::parent_scope(), and base_parser::reset().
|
inline |
Definition at line 430 of file symscope.h.
|
inline |
Definition at line 435 of file symscope.h.
|
inline |
Definition at line 664 of file symscope.h.
Referenced by localfunctions().
|
inline |
Definition at line 669 of file symscope.h.
References get_rep().
|
inline |
Definition at line 451 of file symscope.h.
|
inline |
Definition at line 410 of file symscope.h.
Referenced by tree_anon_fcn_handle::has_parent_scope(), and operator bool().
|
inline |
Definition at line 686 of file symscope.h.
std::list< octave_value > symbol_scope::localfunctions | ( | ) | const |
Definition at line 383 of file symscope.cc.
References is_primary_fcn_scope().
|
inline |
Definition at line 531 of file symscope.h.
|
inline |
Definition at line 697 of file symscope.h.
References name().
|
inline |
Definition at line 495 of file symscope.h.
References name().
|
inline |
Definition at line 674 of file symscope.h.
Referenced by lexical_feedback::mark_as_variable().
|
inline |
Definition at line 680 of file symscope.h.
Referenced by lexical_feedback::mark_as_variables().
|
inline |
Definition at line 658 of file symscope.h.
Referenced by base_parser::push_fcn_symtab().
|
inline |
Definition at line 456 of file symscope.h.
Referenced by base_parser::make_anon_fcn_handle().
|
inline |
Definition at line 556 of file symscope.h.
|
inline |
Definition at line 586 of file symscope.h.
Referenced by cache_dir_name(), cache_fcn_file_name(), cache_fcn_name(), cache_name(), find_subfunction(), find_symbol(), insert(), insert_local(), install_nestfunction(), install_subfunction(), look_nonlocal(), and lookup_symbol().
|
inline |
Definition at line 446 of file symscope.h.
Referenced by tree_evaluator::evaluate_anon_fcn_handle().
|
inline |
Definition at line 414 of file symscope.h.
|
inlineexplicit |
Definition at line 412 of file symscope.h.
References is_valid().
|
default |
|
inline |
Definition at line 608 of file symscope.h.
Referenced by symbol_scope_rep::localfunctions().
|
inline |
Definition at line 462 of file symscope.h.
|
inline |
Definition at line 477 of file symscope.h.
|
inline |
Definition at line 484 of file symscope.h.
References octave_value().
|
inline |
Definition at line 467 of file symscope.h.
|
inline |
Definition at line 505 of file symscope.h.
|
inline |
Definition at line 440 of file symscope.h.
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 624 of file symscope.h.
References get_rep().
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 630 of file symscope.h.
References get_rep().
Referenced by tree_evaluator::evaluate_anon_fcn_handle(), and base_parser::finish_function().
|
inline |
Definition at line 618 of file symscope.h.
|
inline |
Definition at line 567 of file symscope.h.
|
inline |
Definition at line 573 of file symscope.h.
|
inline |
Definition at line 543 of file symscope.h.
|
inline |
Definition at line 732 of file symscope.h.
|
inline |
Definition at line 725 of file symscope.h.
|
inline |
Definition at line 718 of file symscope.h.
Referenced by stack_frame::variable_names().
|
inline |
Definition at line 537 of file symscope.h.
|
inline |
Definition at line 691 of file symscope.h.
Referenced by base_parser::finish_function().
|
inline |
Definition at line 613 of file symscope.h.
|
friend |
Definition at line 713 of file symscope.h.
|
friend |
Definition at line 708 of file symscope.h.