Public Types | |
enum | auto_var_type { ARG_NAMES , IGNORED , NARGIN , NARGOUT , SAVED_WARNING_STATES , NUM_AUTO_VARS } |
typedef std::map< std::string, octave_value > | local_vars_map |
enum | scope_flags { LOCAL , GLOBAL , PERSISTENT } |
Public Member Functions | |
script_stack_frame (const script_stack_frame &elt)=default | |
script_stack_frame (tree_evaluator &tw, octave_user_script *script, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link) | |
script_stack_frame (void)=delete | |
~script_stack_frame (void) | |
void | accept (stack_frame_walker &sfw) |
std::shared_ptr< stack_frame > | access_link (void) const |
symbol_info_list | all_variables (void) |
void | assign (const std::string &name, const octave_value &val) |
void | assign (const symbol_record &sym, const octave_value &val) |
void | assign (octave_value::assign_op op, const symbol_record &sym, const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs) |
void | clear (const symbol_record &sym) |
void | clear_objects (void) |
virtual void | clear_values (void) |
void | clear_variable (const std::string &name) |
void | clear_variable_pattern (const std::string &pattern) |
void | clear_variable_pattern (const string_vector &patterns) |
void | clear_variable_regexp (const std::string &pattern) |
void | clear_variable_regexp (const string_vector &patterns) |
void | clear_variables (void) |
void | column (int c) |
int | column (void) const |
void | display (bool follow=true) const |
void | display_stopped_in_message (std::ostream &os) const |
void | do_non_const_unary_op (octave_value::unary_op op, const symbol_record &sym, const std::string &type, const std::list< octave_value_list > &idx) |
std::string | fcn_file_name (void) const |
std::string | fcn_name (bool print_subfn=true) const |
octave_value | find_subfunction (const std::string &name) const |
octave_function * | function (void) const |
octave_value | get_auto_fcn_var (auto_var_type avt) const |
std::string | get_dispatch_class (void) const |
symbol_scope | get_scope (void) const |
virtual scope_flags | get_scope_flag (size_t) const |
symbol_info_list | get_symbol_info (void) |
bool | get_val_offsets (const symbol_record &sym, size_t &frame_offset, size_t &data_offset) const |
bool | get_val_offsets_internal (const symbol_record &sym, size_t &frame_offset, size_t &data_offset) const |
void | get_val_offsets_with_insert (const symbol_record &sym, size_t &frame_offset, size_t &data_offset) |
symbol_info_list | glob_symbol_info (const std::string &pattern) |
size_t | index (void) const |
symbol_record | insert_symbol (const std::string &) |
void | install_variable (const std::string &name, const octave_value &value, bool global) |
void | install_variable (const symbol_record &sym, const octave_value &value, bool global) |
virtual bool | is_compiled_fcn_frame (void) const |
bool | is_defined (const symbol_record &sym) const |
bool | is_global (const std::string &name) const |
bool | is_global (const symbol_record &sym) const |
bool | is_local_variable (const std::string &name) const |
bool | is_object (const std::string &name) const |
bool | is_object (const symbol_record &sym) const |
bool | is_persistent (const std::string &name) const |
bool | is_persistent (const symbol_record &sym) const |
virtual bool | is_scope_frame (void) const |
virtual bool | is_user_fcn_frame (void) const |
bool | is_user_script_frame (void) const |
bool | is_variable (const std::string &name) const |
bool | is_variable (const symbol_record &sym) const |
void | line (int l) |
int | line (void) const |
symbol_record | lookup_symbol (const std::string &name) const |
void | make_global (const symbol_record &sym) |
void | make_persistent (const symbol_record &sym) |
symbol_info_list | make_symbol_info_list (const std::list< symbol_record > &symrec_list) const |
void | mark_global (const symbol_record &sym) |
void | mark_persistent (const symbol_record &sym) |
void | mark_scope (const symbol_record &sym, scope_flags flag) |
script_stack_frame & | operator= (const script_stack_frame &elt)=delete |
std::shared_ptr< stack_frame > | parent_link (void) const |
symbol_info_list | regexp_symbol_info (const std::string &pattern) |
void | resize (size_t size) |
void | resize_and_update_script_offsets (const symbol_record &sym) |
scope_flags | scope_flag (const symbol_record &sym) const |
void | set_auto_fcn_var (auto_var_type avt, const octave_value &val) |
void | set_dispatch_class (const std::string &class_name) |
virtual void | set_scope_flag (size_t, scope_flags) |
void | set_script_offsets (void) |
void | set_script_offsets_internal (const std::map< std::string, symbol_record > &symbols) |
size_t | size (void) const |
std::shared_ptr< stack_frame > | static_link (void) const |
void | unmark_global (const symbol_record &sym) |
void | unmark_persistent (const symbol_record &sym) |
unwind_protect * | unwind_protect_frame (void) |
octave_value | value (const symbol_record &sym, const std::string &type, const std::list< octave_value_list > &idx) const |
std::list< std::string > | variable_names (void) const |
octave_value & | varref (const symbol_record &sym) |
virtual octave_value & | varref (const symbol_record &sym)=0 |
virtual octave_value & | varref (size_t data_offset) |
virtual octave_value & | varref (size_t data_offset) |
octave_value | varval (const std::string &name) const |
octave_value | varval (const std::string &name) const |
octave_value | varval (const symbol_record &sym) const |
virtual octave_value | varval (const symbol_record &sym) const=0 |
virtual octave_value | varval (size_t data_offset) const |
virtual octave_value | varval (size_t data_offset) const |
octave_value | who (const string_vector &patterns, bool have_regexp, bool return_list, bool verbose, const std::string &whos_line_fmt, const std::string &msg) |
octave_value | workspace (void) |
Static Public Member Functions | |
static stack_frame * | create (tree_evaluator &tw, const symbol_scope &scope, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link) |
static stack_frame * | create (tree_evaluator &tw, octave_function *fcn, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link) |
static stack_frame * | create (tree_evaluator &tw, octave_user_function *fcn, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link, const local_vars_map &local_vars) |
static stack_frame * | create (tree_evaluator &tw, octave_user_function *fcn, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link, const std::shared_ptr< stack_frame > &access_link=std::shared_ptr< stack_frame >()) |
static stack_frame * | create (tree_evaluator &tw, octave_user_script *script, size_t index, const std::shared_ptr< stack_frame > &parent_link, const std::shared_ptr< stack_frame > &static_link) |
static std::shared_ptr< stack_frame > | get_access_link (const std::shared_ptr< stack_frame > &static_link) |
static size_t | get_num_symbols (octave_user_script *script) |
Protected Attributes | |
std::shared_ptr< stack_frame > | m_access_link |
int | m_column |
std::string | m_dispatch_class |
tree_evaluator & | m_evaluator |
size_t | m_index |
int | m_line |
std::shared_ptr< stack_frame > | m_parent_link |
std::shared_ptr< stack_frame > | m_static_link |
Private Attributes | |
std::vector< size_t > | m_lexical_frame_offsets |
octave_user_script * | m_script |
unwind_protect * | m_unwind_protect_frame |
std::vector< size_t > | m_value_offsets |
Definition at line 173 of file stack-frame.cc.
|
inherited |
Definition at line 112 of file stack-frame.h.
|
inherited |
Enumerator | |
---|---|
ARG_NAMES | |
IGNORED | |
NARGIN | |
NARGOUT | |
SAVED_WARNING_STATES | |
NUM_AUTO_VARS |
Definition at line 130 of file stack-frame.h.
|
inherited |
Enumerator | |
---|---|
LOCAL | |
GLOBAL | |
PERSISTENT |
Definition at line 120 of file stack-frame.h.
|
delete |
octave::script_stack_frame::script_stack_frame | ( | tree_evaluator & | tw, |
octave_user_script * | script, | ||
size_t | index, | ||
const std::shared_ptr< stack_frame > & | parent_link, | ||
const std::shared_ptr< stack_frame > & | static_link | ||
) |
Definition at line 1461 of file stack-frame.cc.
References set_script_offsets().
|
default |
|
inline |
Definition at line 188 of file stack-frame.cc.
References m_unwind_protect_frame.
|
virtual |
Implements octave::stack_frame.
Definition at line 2040 of file stack-frame.cc.
References octave::stack_frame_walker::visit_script_stack_frame().
|
inlineinherited |
Definition at line 315 of file stack-frame.h.
References octave::stack_frame::m_access_link.
Referenced by octave::stack_frame::create(), octave::stack_frame::display(), octave::user_fcn_stack_frame::lookup_symbol(), mark_scope(), scope_flag(), octave::user_fcn_stack_frame::scope_flag(), varref(), octave::user_fcn_stack_frame::varref(), varval(), octave::user_fcn_stack_frame::varval(), octave::symbol_cleaner::visit_scope_stack_frame(), octave::symbol_info_accumulator::visit_scope_stack_frame(), octave::symbol_cleaner::visit_script_stack_frame(), octave::symbol_info_accumulator::visit_script_stack_frame(), octave::symbol_cleaner::visit_user_fcn_stack_frame(), octave::symbol_info_accumulator::visit_user_fcn_stack_frame(), and octave::stack_frame::workspace().
|
inherited |
Definition at line 1149 of file stack-frame.cc.
References octave::stack_frame::accept(), and octave::symbol_info_accumulator::symbol_info().
Referenced by octave::stack_frame::get_symbol_info(), and octave::stack_frame::workspace().
|
inlineinherited |
Definition at line 454 of file stack-frame.h.
References octave::stack_frame::assign(), octave::stack_frame::insert_symbol(), and name.
|
inlineinherited |
Definition at line 443 of file stack-frame.h.
References octave_value::call_object_destructor(), octave_value::get_count(), octave_value::storable_value(), and octave::stack_frame::varref().
Referenced by octave::user_fcn_stack_frame::user_fcn_stack_frame(), octave::stack_frame::assign(), octave::stack_frame::clear(), and octave::stack_frame::install_variable().
|
inlineinherited |
Definition at line 461 of file stack-frame.h.
References octave_value::assign(), octave::stack_frame::assign(), octave_value::op_asn_eq, and octave::stack_frame::varref().
|
inlineinherited |
Definition at line 515 of file stack-frame.h.
References octave::stack_frame::assign(), octave::stack_frame::is_global(), octave::stack_frame::is_persistent(), octave::stack_frame::unmark_global(), and octave::stack_frame::unmark_persistent().
Referenced by octave::stack_frame::install_variable(), and octave::symbol_cleaner::maybe_clear_symbol().
|
inherited |
Definition at line 1333 of file stack-frame.cc.
References octave::stack_frame::accept().
|
virtualinherited |
Reimplemented in octave::user_fcn_stack_frame.
Definition at line 1081 of file stack-frame.cc.
References warning().
|
inherited |
Definition at line 1340 of file stack-frame.cc.
References octave::stack_frame::accept(), and name.
|
inherited |
Definition at line 1347 of file stack-frame.cc.
References octave::stack_frame::accept().
|
inherited |
Definition at line 1354 of file stack-frame.cc.
References octave::stack_frame::accept().
|
inherited |
Definition at line 1361 of file stack-frame.cc.
References octave::stack_frame::accept().
|
inherited |
Definition at line 1368 of file stack-frame.cc.
References octave::stack_frame::accept().
|
inherited |
Definition at line 1375 of file stack-frame.cc.
References octave::stack_frame::accept().
|
inlineinherited |
Definition at line 205 of file stack-frame.h.
References octave::stack_frame::m_column.
|
inlineinherited |
Definition at line 206 of file stack-frame.h.
References octave::stack_frame::m_column.
|
staticinherited |
Definition at line 1069 of file stack-frame.cc.
References octave::stack_frame::index(), octave::stack_frame::parent_link(), and octave::stack_frame::static_link().
|
staticinherited |
Definition at line 1034 of file stack-frame.cc.
References octave::stack_frame::index(), octave::stack_frame::parent_link(), and octave::stack_frame::static_link().
Referenced by octave::call_stack::push().
|
staticinherited |
Definition at line 1060 of file stack-frame.cc.
References octave::stack_frame::index(), octave::stack_frame::parent_link(), and octave::stack_frame::static_link().
|
staticinherited |
Definition at line 1051 of file stack-frame.cc.
References octave::stack_frame::access_link(), octave::stack_frame::index(), octave::stack_frame::parent_link(), and octave::stack_frame::static_link().
|
staticinherited |
Definition at line 1042 of file stack-frame.cc.
References octave::stack_frame::index(), octave::stack_frame::parent_link(), and octave::stack_frame::static_link().
|
virtual |
Reimplemented from octave::stack_frame.
Definition at line 2015 of file stack-frame.cc.
References octave::stack_frame::display(), octave::display_scope(), get_scope(), m_lexical_frame_offsets, m_script, m_value_offsets, octave_function::name(), octave_stdout, and octave_user_script::type_name().
|
inherited |
Definition at line 1382 of file stack-frame.cc.
References octave::stack_frame::fcn_file_name(), octave::stack_frame::fcn_name(), octave::stack_frame::index(), and octave::stack_frame::line().
|
inlineinherited |
Definition at line 477 of file stack-frame.h.
References octave_value::do_non_const_unary_op(), and octave::stack_frame::varref().
|
inlineinherited |
Definition at line 208 of file stack-frame.h.
References octave_function::fcn_file_name().
Referenced by octave::stack_frame::display_stopped_in_message().
|
inlineinherited |
Definition at line 215 of file stack-frame.h.
References octave_base_value::is_anonymous_function(), octave_function::name(), octave_function::parent_fcn_name(), and retval.
Referenced by octave::stack_frame::display_stopped_in_message().
|
inlineinherited |
Definition at line 508 of file stack-frame.h.
References octave::symbol_scope::find_subfunction(), octave::stack_frame::get_scope(), and name.
|
inlinevirtual |
Reimplemented from octave::stack_frame.
Definition at line 209 of file stack-frame.cc.
References m_script.
|
static |
Definition at line 1612 of file stack-frame.cc.
References octave::stack_frame::static_link().
|
inlinevirtual |
Implements octave::stack_frame.
Definition at line 243 of file stack-frame.cc.
References octave::stack_frame::m_access_link.
|
inlineinherited |
Definition at line 538 of file stack-frame.h.
References octave::stack_frame::m_dispatch_class.
|
static |
Definition at line 1475 of file stack-frame.cc.
References octave::symbol_scope::num_symbols(), and octave_user_code::scope().
|
inlinevirtual |
Implements octave::stack_frame.
Definition at line 207 of file stack-frame.cc.
References m_script, and octave_user_code::scope().
Referenced by display(), insert_symbol(), and lookup_symbol().
|
virtualinherited |
Reimplemented in octave::base_value_stack_frame.
Definition at line 1251 of file stack-frame.cc.
References panic_impossible.
Referenced by scope_flag(), octave::user_fcn_stack_frame::scope_flag(), varref(), octave::user_fcn_stack_frame::varref(), varval(), and octave::user_fcn_stack_frame::varval().
|
inlineinherited |
Definition at line 271 of file stack-frame.h.
References octave::stack_frame::all_variables().
bool octave::script_stack_frame::get_val_offsets | ( | const symbol_record & | sym, |
size_t & | frame_offset, | ||
size_t & | data_offset | ||
) | const |
Definition at line 1769 of file stack-frame.cc.
References octave::symbol_record::data_offset(), octave::symbol_record::frame_offset(), get_val_offsets_internal(), m_lexical_frame_offsets, m_value_offsets, and size().
Referenced by scope_flag(), and varval().
bool octave::script_stack_frame::get_val_offsets_internal | ( | const symbol_record & | sym, |
size_t & | frame_offset, | ||
size_t & | data_offset | ||
) | const |
Definition at line 1697 of file stack-frame.cc.
References octave::symbol_record::data_offset(), octave::symbol_record::frame_offset(), octave::symbol_scope::is_nested(), octave::stack_frame::m_access_link, name, octave::symbol_record::name(), octave::symbol_scope::parent_scope(), and octave::symbol_scope::symbols().
Referenced by get_val_offsets().
void octave::script_stack_frame::get_val_offsets_with_insert | ( | const symbol_record & | sym, |
size_t & | frame_offset, | ||
size_t & | data_offset | ||
) |
Definition at line 1818 of file stack-frame.cc.
References octave::symbol_record::data_offset(), octave::symbol_record::frame_offset(), m_lexical_frame_offsets, m_value_offsets, octave::symbol_record::name(), resize_and_update_script_offsets(), set_script_offsets_internal(), and size().
Referenced by varref().
|
inherited |
Definition at line 1215 of file stack-frame.cc.
References octave::stack_frame::accept(), and octave::symbol_info_accumulator::symbol_info().
|
inlineinherited |
Definition at line 200 of file stack-frame.h.
References octave::stack_frame::m_index.
Referenced by octave::stack_frame::create(), and octave::stack_frame::display_stopped_in_message().
|
virtual |
Implements octave::stack_frame.
Definition at line 1661 of file stack-frame.cc.
References octave::symbol_scope::find_symbol(), octave::symbol_record::frame_offset(), get_scope(), octave::symbol_scope::lookup_symbol(), name, and resize_and_update_script_offsets().
|
inlineinherited |
Definition at line 416 of file stack-frame.h.
References octave::stack_frame::insert_symbol(), octave::stack_frame::install_variable(), name, and octave::stack_frame::value().
|
inherited |
Definition at line 1269 of file stack-frame.cc.
References octave::stack_frame::assign(), octave::stack_frame::clear(), octave::tree_evaluator::global_varref(), octave::tree_evaluator::global_varval(), octave_value::is_defined(), octave::stack_frame::is_global(), octave::stack_frame::m_evaluator, octave::stack_frame::mark_global(), octave::symbol_record::name(), octave::stack_frame::value(), octave::stack_frame::varval(), and warning_with_id().
Referenced by octave::stack_frame::install_variable(), octave::stack_frame::make_global(), and octave::stack_frame::make_persistent().
|
inlinevirtualinherited |
Reimplemented in octave::compiled_fcn_stack_frame.
Definition at line 193 of file stack-frame.h.
|
inlineinherited |
Definition at line 341 of file stack-frame.h.
References octave::stack_frame::varval().
Referenced by octave::symbol_info_accumulator::filter().
|
inlineinherited |
Definition at line 394 of file stack-frame.h.
References octave::stack_frame::is_global(), octave::stack_frame::lookup_symbol(), and name.
|
inlineinherited |
Definition at line 389 of file stack-frame.h.
References octave::stack_frame::GLOBAL, and octave::stack_frame::scope_flag().
Referenced by octave::stack_frame::clear(), octave::stack_frame::install_variable(), octave::stack_frame::is_global(), octave::stack_frame::is_local_variable(), octave::stack_frame::make_persistent(), and octave::stack_frame::make_symbol_info_list().
|
inlineinherited |
Definition at line 362 of file stack-frame.h.
References octave::stack_frame::is_global(), octave::stack_frame::is_variable(), octave::stack_frame::lookup_symbol(), and name.
|
inlineinherited |
Definition at line 376 of file stack-frame.h.
References octave::stack_frame::is_object(), octave::stack_frame::lookup_symbol(), and name.
|
inlineinherited |
Definition at line 369 of file stack-frame.h.
References octave_value::isobject(), and octave::stack_frame::varval().
Referenced by octave::stack_frame::is_object(), and octave::symbol_cleaner::maybe_clear_symbol().
|
inlineinherited |
Definition at line 406 of file stack-frame.h.
References octave::stack_frame::is_persistent(), octave::stack_frame::lookup_symbol(), and name.
|
inlineinherited |
Definition at line 401 of file stack-frame.h.
References octave::stack_frame::PERSISTENT, and octave::stack_frame::scope_flag().
Referenced by octave::stack_frame::clear(), octave::stack_frame::is_persistent(), octave::stack_frame::make_global(), and octave::stack_frame::make_symbol_info_list().
|
inlinevirtualinherited |
Reimplemented in octave::scope_stack_frame.
Definition at line 196 of file stack-frame.h.
|
inlinevirtualinherited |
Reimplemented in octave::user_fcn_stack_frame.
Definition at line 195 of file stack-frame.h.
|
inlinevirtual |
Reimplemented from octave::stack_frame.
Definition at line 193 of file stack-frame.cc.
|
inlineinherited |
Definition at line 355 of file stack-frame.h.
References octave::stack_frame::is_variable(), octave::stack_frame::lookup_symbol(), and name.
|
inlineinherited |
Definition at line 348 of file stack-frame.h.
References octave_value::is_defined(), and octave::stack_frame::varval().
Referenced by octave::stack_frame::is_local_variable(), octave::stack_frame::is_variable(), and octave::stack_frame::variable_names().
|
inlineinherited |
Definition at line 202 of file stack-frame.h.
References octave::stack_frame::m_line.
|
inlineinherited |
Definition at line 203 of file stack-frame.h.
References octave::stack_frame::m_line.
Referenced by octave::stack_frame::display_stopped_in_message().
|
virtual |
Implements octave::stack_frame.
Definition at line 1638 of file stack-frame.cc.
References octave::symbol_record::dup(), octave::symbol_record::frame_offset(), get_scope(), octave::symbol_scope::lookup_symbol(), octave::stack_frame::m_access_link, name, and octave::symbol_record::set_frame_offset().
|
inlineinherited |
Definition at line 295 of file stack-frame.h.
References error(), octave::stack_frame::install_variable(), octave::stack_frame::is_persistent(), octave::stack_frame::mark_global(), and octave::symbol_record::name().
|
inlineinherited |
Definition at line 276 of file stack-frame.h.
References error(), octave::stack_frame::install_variable(), octave::symbol_record::is_formal(), octave::stack_frame::is_global(), octave::stack_frame::mark_persistent(), and octave::symbol_record::name().
|
inherited |
Definition at line 1087 of file stack-frame.cc.
References octave::base_list< elt_type >::append(), octave_value::is_defined(), octave::stack_frame::is_global(), octave::stack_frame::is_persistent(), octave::stack_frame::value(), and octave::stack_frame::varval().
Referenced by octave::symbol_info_accumulator::append_list().
|
inlineinherited |
Definition at line 321 of file stack-frame.h.
References octave::stack_frame::GLOBAL, and octave::stack_frame::mark_scope().
Referenced by octave::stack_frame::install_variable(), and octave::stack_frame::make_global().
|
inlineinherited |
Definition at line 331 of file stack-frame.h.
References octave::stack_frame::mark_scope(), and octave::stack_frame::PERSISTENT.
Referenced by octave::stack_frame::make_persistent().
|
virtual |
Implements octave::stack_frame.
Definition at line 1991 of file stack-frame.cc.
References octave::stack_frame::access_link(), octave::symbol_record::data_offset(), error(), m_lexical_frame_offsets, m_value_offsets, resize_and_update_script_offsets(), and size().
|
delete |
|
inlineinherited |
Definition at line 309 of file stack-frame.h.
References octave::stack_frame::m_parent_link.
Referenced by octave::stack_frame::create().
|
inherited |
Definition at line 1224 of file stack-frame.cc.
References octave::stack_frame::accept(), and octave::symbol_info_accumulator::symbol_info().
|
inlinevirtual |
Reimplemented from octave::stack_frame.
Definition at line 219 of file stack-frame.cc.
References m_lexical_frame_offsets, m_value_offsets, and size().
Referenced by resize_and_update_script_offsets(), and set_script_offsets().
void octave::script_stack_frame::resize_and_update_script_offsets | ( | const symbol_record & | sym | ) |
Definition at line 1587 of file stack-frame.cc.
References octave::symbol_record::data_offset(), octave::symbol_record::name(), resize(), set_script_offsets_internal(), and size().
Referenced by get_val_offsets_with_insert(), insert_symbol(), and mark_scope().
|
virtual |
Implements octave::stack_frame.
Definition at line 1875 of file stack-frame.cc.
References octave::stack_frame::access_link(), error(), octave::stack_frame::get_scope_flag(), get_val_offsets(), octave::stack_frame::LOCAL, and octave::stack_frame::size().
|
inlinevirtual |
Implements octave::stack_frame.
Definition at line 238 of file stack-frame.cc.
References octave::stack_frame::m_access_link.
|
inlineinherited |
Definition at line 540 of file stack-frame.h.
References octave::stack_frame::m_dispatch_class.
|
virtualinherited |
Reimplemented in octave::base_value_stack_frame.
Definition at line 1260 of file stack-frame.cc.
References panic_impossible.
void octave::script_stack_frame::set_script_offsets | ( | void | ) |
Definition at line 1482 of file stack-frame.cc.
References m_script, octave::symbol_scope::num_symbols(), resize(), octave_user_code::scope(), set_script_offsets_internal(), and octave::symbol_scope::symbols().
Referenced by script_stack_frame().
void octave::script_stack_frame::set_script_offsets_internal | ( | const std::map< std::string, symbol_record > & | symbols | ) |
Definition at line 1499 of file stack-frame.cc.
References octave::symbol_record::data_offset(), error(), octave::symbol_record::frame_offset(), octave::symbol_scope::insert(), octave::symbol_scope::is_nested(), octave::stack_frame::m_access_link, m_lexical_frame_offsets, m_value_offsets, name, octave::symbol_scope::parent_scope(), and octave::symbol_scope::symbols().
Referenced by get_val_offsets_with_insert(), resize_and_update_script_offsets(), and set_script_offsets().
|
inlinevirtual |
Reimplemented from octave::stack_frame.
Definition at line 217 of file stack-frame.cc.
References m_lexical_frame_offsets.
Referenced by get_val_offsets(), get_val_offsets_with_insert(), mark_scope(), resize(), and resize_and_update_script_offsets().
|
inlineinherited |
Definition at line 312 of file stack-frame.h.
References octave::stack_frame::m_static_link.
Referenced by octave::stack_frame::create(), get_access_link(), octave::user_fcn_stack_frame::get_access_link(), octave::symbol_cleaner::visit_compiled_fcn_stack_frame(), and octave::symbol_info_accumulator::visit_compiled_fcn_stack_frame().
|
inlineinherited |
Definition at line 326 of file stack-frame.h.
References octave::stack_frame::LOCAL, and octave::stack_frame::mark_scope().
Referenced by octave::stack_frame::clear().
|
inlineinherited |
Definition at line 336 of file stack-frame.h.
References octave::stack_frame::LOCAL, and octave::stack_frame::mark_scope().
Referenced by octave::stack_frame::clear().
|
virtual |
Reimplemented from octave::stack_frame.
Definition at line 1630 of file stack-frame.cc.
References m_unwind_protect_frame.
|
inlineinherited |
Definition at line 488 of file stack-frame.h.
References octave_value_list::length(), octave_value(), retval, and octave::stack_frame::varval().
Referenced by octave::stack_frame::install_variable(), and octave::stack_frame::make_symbol_info_list().
|
inherited |
Definition at line 1196 of file stack-frame.cc.
References octave::stack_frame::get_scope(), octave::stack_frame::is_variable(), retval, Array< T >::sort(), and octave::symbol_scope::symbols().
|
virtual |
Implements octave::stack_frame.
Definition at line 1952 of file stack-frame.cc.
References octave::stack_frame::access_link(), error(), octave::stack_frame::get_scope(), octave::stack_frame::get_scope_flag(), get_val_offsets_with_insert(), octave::stack_frame::GLOBAL, octave::tree_evaluator::global_varref(), octave::stack_frame::LOCAL, octave::stack_frame::m_evaluator, octave::symbol_record::name(), octave::stack_frame::PERSISTENT, octave::symbol_scope::persistent_varref(), octave::stack_frame::resize(), octave::stack_frame::size(), and octave::stack_frame::varref().
virtual octave_value& octave::stack_frame::varref |
octave_value & octave::stack_frame::varref |
Definition at line 441 of file stack-frame.cc.
|
virtualinherited |
Reimplemented in octave::base_value_stack_frame.
Definition at line 1324 of file stack-frame.cc.
References panic_impossible.
|
inline |
Definition at line 432 of file stack-frame.h.
|
inlineinherited |
Definition at line 432 of file stack-frame.h.
References octave::stack_frame::lookup_symbol(), name, octave_value(), and octave::stack_frame::varval().
|
virtual |
Implements octave::stack_frame.
Definition at line 1906 of file stack-frame.cc.
References octave::stack_frame::access_link(), error(), octave::stack_frame::get_scope(), octave::stack_frame::get_scope_flag(), get_val_offsets(), octave::stack_frame::GLOBAL, octave::tree_evaluator::global_varval(), octave::stack_frame::LOCAL, octave::stack_frame::m_evaluator, octave::symbol_record::name(), octave_value(), octave::stack_frame::PERSISTENT, octave::symbol_scope::persistent_varval(), octave::stack_frame::size(), and octave::stack_frame::varval().
virtual octave_value octave::stack_frame::varval |
octave_value octave::stack_frame::varval |
Definition at line 430 of file stack-frame.cc.
|
virtualinherited |
Reimplemented in octave::base_value_stack_frame.
Definition at line 1315 of file stack-frame.cc.
References panic_impossible.
|
inherited |
Definition at line 1107 of file stack-frame.cc.
References octave::stack_frame::accept(), octave::symbol_info_accumulator::display(), octave::symbol_info_accumulator::is_empty(), string_vector::list_in_columns(), octave::symbol_info_accumulator::map_value(), octave::symbol_info_accumulator::names(), octave_stdout, and octave_value().
|
inherited |
Definition at line 1158 of file stack-frame.cc.
References octave::stack_frame::access_link(), octave::stack_frame::all_variables(), octave_scalar_map::assign(), octave_value::is_defined(), octave::symbol_info_list::names(), and octave::symbol_info_list::varval().
|
protectedinherited |
Definition at line 580 of file stack-frame.h.
Referenced by octave::stack_frame::access_link(), octave::stack_frame::display(), get_auto_fcn_var(), get_val_offsets_internal(), lookup_symbol(), set_auto_fcn_var(), and set_script_offsets_internal().
|
protectedinherited |
Definition at line 563 of file stack-frame.h.
Referenced by octave::stack_frame::column(), and octave::stack_frame::display().
|
protectedinherited |
Definition at line 584 of file stack-frame.h.
Referenced by octave::stack_frame::get_dispatch_class(), and octave::stack_frame::set_dispatch_class().
|
protectedinherited |
Definition at line 558 of file stack-frame.h.
Referenced by octave::stack_frame::install_variable(), varref(), octave::user_fcn_stack_frame::varref(), octave::scope_stack_frame::varref(), varval(), octave::user_fcn_stack_frame::varval(), and octave::scope_stack_frame::varval().
|
protectedinherited |
Definition at line 566 of file stack-frame.h.
Referenced by octave::stack_frame::display(), and octave::stack_frame::index().
|
private |
Definition at line 279 of file stack-frame.cc.
Referenced by display(), get_val_offsets(), get_val_offsets_with_insert(), mark_scope(), resize(), set_script_offsets_internal(), and size().
|
protectedinherited |
Definition at line 562 of file stack-frame.h.
Referenced by octave::stack_frame::display(), and octave::stack_frame::line().
|
protectedinherited |
Definition at line 570 of file stack-frame.h.
Referenced by octave::stack_frame::display(), and octave::stack_frame::parent_link().
|
private |
Definition at line 268 of file stack-frame.cc.
Referenced by display(), function(), get_scope(), and set_script_offsets().
|
protectedinherited |
Definition at line 575 of file stack-frame.h.
Referenced by octave::stack_frame::display(), octave::compiled_fcn_stack_frame::get_auto_fcn_var(), octave::compiled_fcn_stack_frame::get_scope(), octave::compiled_fcn_stack_frame::insert_symbol(), octave::compiled_fcn_stack_frame::lookup_symbol(), octave::compiled_fcn_stack_frame::mark_scope(), octave::compiled_fcn_stack_frame::scope_flag(), octave::compiled_fcn_stack_frame::set_auto_fcn_var(), octave::stack_frame::static_link(), octave::compiled_fcn_stack_frame::varref(), and octave::compiled_fcn_stack_frame::varval().
|
private |
Definition at line 272 of file stack-frame.cc.
Referenced by ~script_stack_frame(), and unwind_protect_frame().
|
private |
Definition at line 280 of file stack-frame.cc.
Referenced by display(), get_val_offsets(), get_val_offsets_with_insert(), mark_scope(), resize(), and set_script_offsets_internal().