GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "toplev.h"
Classes | |
class | stack_frame |
Public Types | |
typedef std::deque < stack_frame > ::const_iterator | const_iterator |
typedef std::deque < stack_frame > ::const_reverse_iterator | const_reverse_iterator |
typedef std::deque < stack_frame >::iterator | iterator |
typedef std::deque < stack_frame > ::reverse_iterator | reverse_iterator |
Protected Member Functions | |
octave_call_stack (void) | |
Static Private Member Functions | |
static void | cleanup_instance (void) |
Private Attributes | |
std::deque< stack_frame > | cs |
size_t | curr_frame |
Static Private Attributes | |
static octave_call_stack * | instance = 0 |
typedef std::deque<stack_frame>::const_iterator octave_call_stack::const_iterator |
typedef std::deque<stack_frame>::const_reverse_iterator octave_call_stack::const_reverse_iterator |
typedef std::deque<stack_frame>::iterator octave_call_stack::iterator |
typedef std::deque<stack_frame>::reverse_iterator octave_call_stack::reverse_iterator |
|
inlineprotected |
Definition at line 81 of file toplev.h.
Referenced by create_instance().
|
inlinestatic |
Definition at line 227 of file toplev.h.
References do_all_scripts(), instance, and instance_ok().
Referenced by tree_evaluator::visit_statement().
|
inlinestatic |
Definition at line 295 of file toplev.h.
References do_backtrace(), instance, and instance_ok().
Referenced by do_dbstack(), Flasterror(), and verror().
|
inlinestatic |
Definition at line 304 of file toplev.h.
References do_backtrace(), instance, and instance_ok().
|
inlinestatic |
Definition at line 313 of file toplev.h.
References do_backtrace_frames(), instance, and instance_ok().
Referenced by pr_where().
|
inlinestatic |
Definition at line 323 of file toplev.h.
References do_backtrace_frames(), instance, and instance_ok().
|
inlinestatic |
Definition at line 176 of file toplev.h.
References do_caller(), instance, and instance_ok().
Referenced by called_from_builtin(), do_who(), Fclass(), Finferiorto(), Fmislocked(), Fmlock(), Fmunlock(), and Fsuperiorto().
|
inlinestatic |
Definition at line 221 of file toplev.h.
References do_caller_user_code(), instance, and instance_ok().
Referenced by error_2(), Fautoload(), Fmfilename(), get_debug_input(), get_user_code(), try_local_protect(), verror(), and warning_1().
|
inlinestatic |
Definition at line 170 of file toplev.h.
References do_caller_user_code_column(), instance, and instance_ok().
|
inlinestatic |
Definition at line 164 of file toplev.h.
References do_caller_user_code_line(), instance, and instance_ok().
Referenced by Fdblist(), Fdbwhere(), and get_debug_input().
|
inlinestaticprivate |
Definition at line 353 of file toplev.h.
References instance.
Referenced by create_instance(), and ft_manager::instance_ok().
|
inlinestatic |
Definition at line 338 of file toplev.h.
References do_clear(), instance, and instance_ok().
|
static |
Definition at line 134 of file toplev.cc.
References singleton_cleanup_list::add(), cleanup_instance(), do_push(), instance, octave_call_stack(), and symbol_table::top_scope().
Referenced by instance_ok().
|
inlinestatic |
Definition at line 146 of file toplev.h.
References do_current(), instance, and instance_ok().
Referenced by mex::function_name(), get_class_context(), octave_class::get_current_method_class(), get_current_shlib(), octave_class::in_class_method(), octave_classdef_superclass_ref::is_constructed_object(), is_method_executing(), mlock(), octave_fcn_inline::octave_fcn_inline(), print_usage(), tree_anon_fcn_handle::rvalue1(), and verror().
|
inlinestatic |
Definition at line 158 of file toplev.h.
References do_current_column(), instance, and instance_ok().
Referenced by tree_evaluator::do_unwind_protect_cleanup_code().
|
inlinestatic |
Definition at line 202 of file toplev.h.
References do_current_context(), instance, and instance_ok().
Referenced by Fwarning().
|
inlinestatic |
Definition at line 181 of file toplev.h.
References do_current_frame(), instance, and instance_ok().
Referenced by tree_evaluator::do_breakpoint(), do_keyboard(), error_2(), Fkeyboard(), tree_evaluator::visit_return_command(), and warning_1().
|
inlinestatic |
Definition at line 152 of file toplev.h.
References do_current_line(), instance, and instance_ok().
Referenced by tree_evaluator::do_unwind_protect_cleanup_code(), and get_debug_input().
|
inlinestatic |
Definition at line 197 of file toplev.h.
References do_current_scope(), instance, and instance_ok().
Referenced by Fwarning().
|
private |
Definition at line 293 of file toplev.cc.
References cs, f, octave_base_value::is_user_script(), and octave_call_stack::stack_frame::m_fcn.
Referenced by all_scripts().
|
private |
Definition at line 363 of file toplev.cc.
References bt_fields, octave_map::contents(), context, do_backtrace_frames(), octave_call_stack::stack_frame::fcn_file_name(), octave_call_stack::stack_frame::fcn_name(), octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_line, and octave_call_stack::stack_frame::m_scope.
Referenced by backtrace().
|
private |
Definition at line 329 of file toplev.cc.
References cs, do_num_user_code_frames(), f, octave_base_value::is_user_code(), and octave_call_stack::stack_frame::m_fcn.
Referenced by backtrace_frames(), and do_backtrace().
|
inlineprivate |
|
private |
Definition at line 265 of file toplev.cc.
References cs, f, octave_base_value::is_user_code(), and octave_call_stack::stack_frame::m_fcn.
Referenced by caller_user_code().
|
private |
Definition at line 201 of file toplev.cc.
References cs, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_column, and octave_call_stack::stack_frame::m_fcn.
Referenced by caller_user_code_column().
|
private |
Definition at line 175 of file toplev.cc.
References cs, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_fcn, and octave_call_stack::stack_frame::m_line.
Referenced by caller_user_code_line().
|
inlineprivate |
|
inlineprivate |
Definition at line 419 of file toplev.h.
References curr_frame, and octave_call_stack::stack_frame::m_fcn.
Referenced by current().
|
private |
Definition at line 161 of file toplev.cc.
References cs, curr_frame, and octave_call_stack::stack_frame::m_column.
Referenced by current_column().
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 147 of file toplev.cc.
References cs, curr_frame, and octave_call_stack::stack_frame::m_line.
Referenced by current_line().
|
inlineprivate |
|
inlineprivate |
Definition at line 393 of file toplev.h.
References octave_call_stack::stack_frame::m_fcn.
Referenced by element().
|
private |
Definition at line 534 of file toplev.cc.
References cs, curr_frame, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, and symbol_table::set_scope_and_context().
Referenced by goto_base_frame().
|
private |
Definition at line 496 of file toplev.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, and symbol_table::set_scope_and_context().
Referenced by goto_caller_frame().
Definition at line 402 of file toplev.cc.
References cs, curr_frame, octave_call_stack::stack_frame::fcn_name(), octave_call_stack::stack_frame::m_column, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_line, octave_call_stack::stack_frame::m_scope, octave_stdout, and symbol_table::set_scope_and_context().
Referenced by goto_frame().
Definition at line 428 of file toplev.cc.
References cs, curr_frame, f, octave_base_value::is_user_code(), octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_fcn, octave_call_stack::stack_frame::m_line, octave_call_stack::stack_frame::m_scope, octave_function::name(), octave_stdout, and symbol_table::set_scope_and_context().
Referenced by goto_frame_relative().
|
private |
Definition at line 228 of file toplev.cc.
References cs, curr_frame, f, and octave_base_value::is_user_code().
Referenced by do_backtrace_frames(), and num_user_code_frames().
|
inlineprivate |
Definition at line 478 of file toplev.h.
References curr_frame, octave_call_stack::stack_frame::m_context, octave_call_stack::stack_frame::m_prev, octave_call_stack::stack_frame::m_scope, and symbol_table::set_scope_and_context().
Referenced by pop().
|
inlineprivate |
Definition at line 410 of file toplev.h.
References curr_frame, and symbol_table::set_scope_and_context().
Referenced by create_instance(), and push().
|
inlineprivate |
Definition at line 453 of file toplev.h.
References octave_call_stack::stack_frame::m_column.
Referenced by set_column().
|
inlineprivate |
Definition at line 443 of file toplev.h.
References octave_call_stack::stack_frame::m_line.
Referenced by set_line().
Definition at line 432 of file toplev.h.
References octave_call_stack::stack_frame::m_column, and octave_call_stack::stack_frame::m_line.
Referenced by set_location().
|
inlineprivate |
|
inlinestatic |
Definition at line 215 of file toplev.h.
References do_element(), instance, and instance_ok().
|
static |
Definition at line 323 of file toplev.cc.
References bt_fields.
Referenced by initialize_last_error_stack().
|
inlinestatic |
Definition at line 289 of file toplev.h.
References do_goto_base_frame(), instance, and instance_ok().
Referenced by Fassignin(), Fevalin(), mexGetVariable(), mexPutVariable(), and source_file().
|
inlinestatic |
Definition at line 283 of file toplev.h.
References do_goto_caller_frame(), instance, and instance_ok().
Referenced by Fassignin(), Fevalin(), and source_file().
Definition at line 267 of file toplev.h.
References do_goto_frame(), instance, and instance_ok().
Referenced by restore_frame().
Definition at line 277 of file toplev.h.
References do_goto_frame_relative(), instance, and instance_ok().
Referenced by do_dbupdown(), and Fkeyboard().
|
inlinestatic |
Definition at line 128 of file toplev.h.
References create_instance(), error(), and instance.
Referenced by all_scripts(), backtrace(), backtrace_frames(), caller(), caller_user_code(), caller_user_code_column(), caller_user_code_line(), clear(), current(), current_column(), current_context(), current_frame(), current_line(), current_scope(), element(), ft_manager::font_destroyed(), ft_manager::get_font(), goto_base_frame(), goto_caller_frame(), goto_frame(), goto_frame_relative(), num_user_code_frames(), pop(), push(), set_column(), set_line(), set_location(), and size().
|
inlinestatic |
Definition at line 191 of file toplev.h.
References do_num_user_code_frames(), instance, and instance_ok().
|
inlinestatic |
Definition at line 332 of file toplev.h.
References do_pop(), instance, and instance_ok().
Referenced by octave_builtin::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), do_who(), Fassignin(), Fevalin(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), mexGetVariable(), mexPutVariable(), read_mat5_binary_element(), and source_file().
|
inlinestatic |
Definition at line 233 of file toplev.h.
References context, do_push(), instance, and instance_ok().
Referenced by octave_builtin::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), octave_fcn_handle::load_hdf5(), and read_mat5_binary_element().
|
inlinestatic |
|
inlinestatic |
Definition at line 272 of file toplev.h.
References goto_frame().
Referenced by do_keyboard(), and Fkeyboard().
|
inlinestatic |
Definition at line 261 of file toplev.h.
References do_set_column(), instance, and instance_ok().
Referenced by tree_evaluator::do_unwind_protect_cleanup_code().
|
inlinestatic |
Definition at line 255 of file toplev.h.
References do_set_line(), instance, and instance_ok().
Referenced by tree_evaluator::do_unwind_protect_cleanup_code().
Definition at line 249 of file toplev.h.
References do_set_location(), instance, and instance_ok().
Referenced by tree_evaluator::visit_if_command_list(), and tree_evaluator::visit_statement().
|
inlinestatic |
Definition at line 186 of file toplev.h.
References do_size(), instance, and instance_ok().
|
private |
Definition at line 347 of file toplev.h.
Referenced by do_all_scripts(), do_backtrace_frames(), do_caller_user_code(), do_caller_user_code_column(), do_caller_user_code_line(), do_current_column(), do_current_line(), do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), and do_num_user_code_frames().
|
private |
Definition at line 349 of file toplev.h.
Referenced by do_current(), do_current_column(), do_current_context(), do_current_frame(), do_current_line(), do_current_scope(), do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), do_num_user_code_frames(), do_pop(), and do_push().
|
staticprivate |
Definition at line 351 of file toplev.h.
Referenced by all_scripts(), backtrace(), backtrace_frames(), caller(), caller_user_code(), caller_user_code_column(), caller_user_code_line(), ft_manager::cleanup_instance(), cleanup_instance(), clear(), create_instance(), current(), current_column(), current_context(), current_frame(), current_line(), current_scope(), element(), ft_manager::font_destroyed(), ft_manager::get_font(), goto_base_frame(), goto_caller_frame(), goto_frame(), goto_frame_relative(), ft_manager::instance_ok(), instance_ok(), num_user_code_frames(), pop(), push(), set_column(), set_line(), set_location(), and size().