#include "toplev.h"
Definition at line 80 of file toplev.h.
typedef std::deque<call_stack_elt>::const_iterator octave_call_stack::const_iterator |
typedef std::deque<call_stack_elt>::const_reverse_iterator octave_call_stack::const_reverse_iterator |
typedef std::deque<call_stack_elt>::iterator octave_call_stack::iterator |
typedef std::deque<call_stack_elt>::reverse_iterator octave_call_stack::reverse_iterator |
octave_call_stack::octave_call_stack | ( | void | ) | [inline, protected] |
Definition at line 105 of file toplev.h.
Referenced by create_instance().
static octave_map octave_call_stack::backtrace | ( | size_t | nskip, | |
octave_idx_type & | curr_user_frame | |||
) | [inline, static] |
Definition at line 266 of file toplev.h.
Referenced by DEFUN(), do_dbstack(), pr_where(), and verror().
static void octave_call_stack::backtrace_error_message | ( | void | ) | [inline, static] |
Definition at line 286 of file toplev.h.
Referenced by octave_user_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), and octave_oncleanup::~octave_oncleanup().
static octave_function* octave_call_stack::caller | ( | void | ) | [inline, static] |
Definition at line 171 of file toplev.h.
Referenced by called_from_builtin(), DEFUN(), and do_who().
static octave_user_code* octave_call_stack::caller_user_code | ( | size_t | nskip = 0 |
) | [inline, static] |
Definition at line 210 of file toplev.h.
Referenced by error_2(), get_debug_input(), get_user_code(), parse_dbfunction_params(), try_local_protect(), verror(), and warning_1().
static int octave_call_stack::caller_user_code_column | ( | void | ) | [inline, static] |
static int octave_call_stack::caller_user_code_line | ( | void | ) | [inline, static] |
static void octave_call_stack::cleanup_instance | ( | void | ) | [inline, static, private] |
Definition at line 301 of file toplev.h.
Referenced by create_instance().
static void octave_call_stack::clear | ( | void | ) | [inline, static] |
void octave_call_stack::create_instance | ( | void | ) | [static] |
Definition at line 103 of file toplev.cc.
References singleton_cleanup_list::add(), cleanup_instance(), do_push(), instance, octave_call_stack(), and symbol_table::top_scope().
static octave_function* octave_call_stack::current | ( | void | ) | [inline, static] |
Definition at line 135 of file toplev.h.
Referenced by mex::function_name(), octave_class::get_current_method_class(), get_current_shlib(), octave_class::in_class_method(), mlock(), octave_fcn_inline::octave_fcn_inline(), print_usage(), tree_anon_fcn_handle::rvalue1(), and verror().
static int octave_call_stack::current_column | ( | void | ) | [inline, static] |
static symbol_table::context_id octave_call_stack::current_context | ( | void | ) | [inline, static] |
static size_t octave_call_stack::current_frame | ( | void | ) | [inline, static] |
Definition at line 176 of file toplev.h.
Referenced by DEFUN(), tree_evaluator::do_breakpoint(), do_keyboard(), and tree_evaluator::visit_return_command().
static int octave_call_stack::current_line | ( | void | ) | [inline, static] |
Definition at line 147 of file toplev.h.
Referenced by get_debug_input().
static symbol_table::scope_id octave_call_stack::current_scope | ( | void | ) | [inline, static] |
static tree_statement* octave_call_stack::current_statement | ( | void | ) | [inline, static] |
Definition at line 141 of file toplev.h.
Referenced by tree_evaluator::do_unwind_protect_cleanup_code().
octave_map octave_call_stack::do_backtrace | ( | size_t | nskip, | |
octave_idx_type & | curr_user_frame | |||
) | const [private] |
Definition at line 265 of file toplev.cc.
References bt_fields, tree_statement::column(), octave_map::contents(), octave_call_stack::call_stack_elt::context, cs, do_num_user_code_frames(), f, octave_call_stack::call_stack_elt::fcn, octave_function::fcn_file_name(), octave_base_value::is_user_code(), tree_statement::line(), octave_function::name(), octave_function::parent_fcn_name(), octave_call_stack::call_stack_elt::scope, octave_call_stack::call_stack_elt::stmt, and Vfilemarker.
void octave_call_stack::do_backtrace_error_message | ( | void | ) | const [private] |
Definition at line 495 of file toplev.cc.
References tree_statement::column(), cs, error(), error_state, octave_call_stack::call_stack_elt::fcn, octave_function::fcn_file_name(), tree_statement::line(), octave_function::name(), and octave_call_stack::call_stack_elt::stmt.
octave_function* octave_call_stack::do_caller | ( | void | ) | const [inline, private] |
octave_user_code * octave_call_stack::do_caller_user_code | ( | size_t | nskip | ) | const [private] |
Definition at line 225 of file toplev.cc.
References cs, f, octave_call_stack::call_stack_elt::fcn, and octave_base_value::is_user_code().
int octave_call_stack::do_caller_user_code_column | ( | void | ) | const [private] |
Definition at line 160 of file toplev.cc.
References tree_statement::column(), cs, f, octave_call_stack::call_stack_elt::fcn, octave_base_value::is_user_code(), and octave_call_stack::call_stack_elt::stmt.
int octave_call_stack::do_caller_user_code_line | ( | void | ) | const [private] |
Definition at line 132 of file toplev.cc.
References cs, f, octave_call_stack::call_stack_elt::fcn, octave_base_value::is_user_code(), tree_statement::line(), and octave_call_stack::call_stack_elt::stmt.
void octave_call_stack::do_clear | ( | void | ) | [inline, private] |
octave_function* octave_call_stack::do_current | ( | void | ) | const [inline, private] |
Definition at line 358 of file toplev.h.
References octave_call_stack::call_stack_elt::fcn.
int octave_call_stack::do_current_column | ( | void | ) | const [private] |
Definition at line 124 of file toplev.cc.
References tree_statement::column(), and do_current_statement().
symbol_table::context_id octave_call_stack::do_current_context | ( | void | ) | const [inline, private] |
size_t octave_call_stack::do_current_frame | ( | void | ) | [inline, private] |
int octave_call_stack::do_current_line | ( | void | ) | const [private] |
Definition at line 116 of file toplev.cc.
References do_current_statement(), and tree_statement::line().
symbol_table::scope_id octave_call_stack::do_current_scope | ( | void | ) | const [inline, private] |
tree_statement* octave_call_stack::do_current_statement | ( | void | ) | const [inline, private] |
Definition at line 371 of file toplev.h.
References octave_call_stack::call_stack_elt::stmt.
Referenced by do_current_column(), and do_current_line().
octave_function* octave_call_stack::do_element | ( | size_t | n | ) | [inline, private] |
Definition at line 334 of file toplev.h.
References octave_call_stack::call_stack_elt::fcn.
void octave_call_stack::do_goto_base_frame | ( | void | ) | [private] |
Definition at line 482 of file toplev.cc.
References octave_call_stack::call_stack_elt::context, cs, curr_frame, octave_call_stack::call_stack_elt::prev, octave_call_stack::call_stack_elt::scope, and symbol_table::set_scope_and_context().
void octave_call_stack::do_goto_caller_frame | ( | void | ) | [private] |
Definition at line 444 of file toplev.cc.
References octave_call_stack::call_stack_elt::context, cs, curr_frame, f, octave_call_stack::call_stack_elt::fcn, octave_base_value::is_user_code(), octave_call_stack::call_stack_elt::prev, octave_call_stack::call_stack_elt::scope, and symbol_table::set_scope_and_context().
Definition at line 333 of file toplev.cc.
References tree_statement::column(), octave_call_stack::call_stack_elt::context, cs, curr_frame, f, octave_call_stack::call_stack_elt::fcn, tree_statement::line(), octave_function::name(), octave_stdout, octave_call_stack::call_stack_elt::scope, symbol_table::set_scope_and_context(), and octave_call_stack::call_stack_elt::stmt.
Definition at line 372 of file toplev.cc.
References octave_call_stack::call_stack_elt::context, cs, curr_frame, f, octave_call_stack::call_stack_elt::fcn, octave_base_value::is_user_code(), tree_statement::line(), octave_function::name(), octave_stdout, octave_call_stack::call_stack_elt::scope, symbol_table::set_scope_and_context(), and octave_call_stack::call_stack_elt::stmt.
size_t octave_call_stack::do_num_user_code_frames | ( | octave_idx_type & | curr_user_frame | ) | const [private] |
Definition at line 188 of file toplev.cc.
References cs, curr_frame, f, and octave_base_value::is_user_code().
Referenced by do_backtrace().
void octave_call_stack::do_pop | ( | void | ) | [inline, private] |
Definition at line 404 of file toplev.h.
References octave_call_stack::call_stack_elt::context, octave_call_stack::call_stack_elt::prev, octave_call_stack::call_stack_elt::scope, and symbol_table::set_scope_and_context().
void octave_call_stack::do_push | ( | octave_function * | f, | |
symbol_table::scope_id | scope, | |||
symbol_table::context_id | context | |||
) | [inline, private] |
Definition at line 349 of file toplev.h.
References symbol_table::set_scope_and_context().
Referenced by create_instance().
void octave_call_stack::do_set_statement | ( | tree_statement * | s | ) | [inline, private] |
Definition at line 384 of file toplev.h.
References octave_call_stack::call_stack_elt::stmt.
size_t octave_call_stack::do_size | ( | void | ) | [inline, private] |
static octave_function* octave_call_stack::element | ( | size_t | n | ) | [inline, static] |
octave_map octave_call_stack::empty_backtrace | ( | void | ) | [static] |
Definition at line 259 of file toplev.cc.
References bt_fields.
Referenced by initialize_last_error_stack().
static void octave_call_stack::goto_base_frame | ( | void | ) | [inline, static] |
Definition at line 260 of file toplev.h.
Referenced by mexGetVariable(), and mexPutVariable().
static void octave_call_stack::goto_caller_frame | ( | void | ) | [inline, static] |
Definition at line 254 of file toplev.h.
Referenced by mexGetVariable(), and mexPutVariable().
Definition at line 248 of file toplev.h.
Referenced by DEFUN(), and do_dbupdown().
static bool octave_call_stack::instance_ok | ( | void | ) | [inline, static] |
static size_t octave_call_stack::num_user_code_frames | ( | octave_idx_type & | curr_user_frame | ) | [inline, static] |
static void octave_call_stack::pop | ( | void | ) | [inline, static] |
Definition at line 274 of file toplev.h.
Referenced by octave_user_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_builtin::do_multi_index_op(), do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), mexGetVariable(), mexPutVariable(), and read_mat5_binary_element().
static void octave_call_stack::push | ( | octave_function * | f, | |
symbol_table::scope_id | scope = symbol_table::current_scope () , |
|||
symbol_table::context_id | context = symbol_table::current_context () | |||
) | [inline, static] |
Definition at line 216 of file toplev.h.
Referenced by octave_user_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_builtin::do_multi_index_op(), do_who(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), and read_mat5_binary_element().
static void octave_call_stack::push | ( | symbol_table::scope_id | scope = symbol_table::current_scope () , |
|
symbol_table::context_id | context = symbol_table::current_context () | |||
) | [inline, static] |
static void octave_call_stack::restore_frame | ( | size_t | n | ) | [inline, static] |
Definition at line 243 of file toplev.h.
Referenced by DEFUN(), and do_keyboard().
static void octave_call_stack::set_statement | ( | tree_statement * | s | ) | [inline, static] |
Definition at line 232 of file toplev.h.
Referenced by tree_evaluator::do_unwind_protect_cleanup_code(), and tree_evaluator::visit_statement().
static size_t octave_call_stack::size | ( | void | ) | [inline, static] |
std::deque<call_stack_elt> octave_call_stack::cs [private] |
Definition at line 295 of file toplev.h.
Referenced by do_backtrace(), do_backtrace_error_message(), do_caller_user_code(), do_caller_user_code_column(), do_caller_user_code_line(), do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), and do_num_user_code_frames().
size_t octave_call_stack::curr_frame [private] |
Definition at line 297 of file toplev.h.
Referenced by do_goto_base_frame(), do_goto_caller_frame(), do_goto_frame(), do_goto_frame_relative(), and do_num_user_code_frames().
octave_call_stack * octave_call_stack::instance = 0 [static, private] |
Definition at line 299 of file toplev.h.
Referenced by create_instance().