#include "unwind-prot.h"
Public Member Functions | |
~unwind_protect_safe (void) | |
void | add (elem *new_elem) |
void | add (void(*fcn)(void *), void *ptr=0) |
template<class T > | |
void | add_delete (T *obj) |
void | add_fcn (void(*fcn)(void)) |
template<class T > | |
void | add_fcn (void(*action)(T), T val) |
template<class T > | |
void | add_fcn (void(*action)(const T &), T val) |
template<class T > | |
void | add_method (T *obj, void(T::*method)(void)) |
void | discard (void) |
void | discard_top (int num) |
void | discard_top (void) |
operator bool (void) const | |
template<class T > | |
void | protect_var (T &var, const T &val) |
template<class T > | |
void | protect_var (T &var) |
void | run (void) |
void | run_top (int num) |
void | run_top (void) |
Static Private Member Functions | |
static void | gripe_exception (void) |
Definition at line 321 of file unwind-prot.h.
unwind_protect_safe::~unwind_protect_safe | ( | void | ) | [inline] |
Definition at line 328 of file unwind-prot.h.
void unwind_protect::add | ( | elem * | new_elem | ) | [inline, inherited] |
Definition at line 187 of file unwind-prot.h.
References unwind_protect::elem::next.
Referenced by call_mex().
void unwind_protect::add | ( | void(*)(void *) | fcn, | |
void * | ptr = 0 | |||
) | [inline, inherited] |
Definition at line 194 of file unwind-prot.h.
void unwind_protect::add_delete | ( | T * | obj | ) | [inline, inherited] |
Definition at line 229 of file unwind-prot.h.
Referenced by get_data_and_bytesize(), and run_command_and_return_output().
void unwind_protect::add_fcn | ( | void(*)(void) | fcn | ) | [inline, inherited] |
Definition at line 200 of file unwind-prot.h.
Referenced by DEFUN(), DEFUN_DLD(), do_edit_history(), do_history(), do_keyboard(), 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_rand(), do_run_history(), tree_evaluator::do_unwind_protect_cleanup_code(), do_who(), get_debug_input(), octave_fcn_handle::load_ascii(), octave_fcn_handle::load_binary(), main_loop(), mexGetVariable(), mexPutVariable(), read_mat5_binary_element(), and run_command_and_return_output().
void unwind_protect::add_fcn | ( | void(*)(T) | action, | |
T | val | |||
) | [inline, inherited] |
Definition at line 207 of file unwind-prot.h.
void unwind_protect::add_fcn | ( | void(*)(const T &) | action, | |
T | val | |||
) | [inline, inherited] |
Definition at line 214 of file unwind-prot.h.
void unwind_protect::add_method | ( | T * | obj, | |
void(T::*)(void) | method | |||
) | [inline, inherited] |
Definition at line 221 of file unwind-prot.h.
Referenced by octave_user_function::do_multi_index_op().
void unwind_protect::discard | ( | void | ) | [inline, inherited] |
Definition at line 292 of file unwind-prot.h.
Referenced by DEFUN_DLD().
void unwind_protect::discard_top | ( | void | ) | [inline, inherited] |
Definition at line 270 of file unwind-prot.h.
References unwind_protect::elem::next.
Referenced by tree_evaluator::do_unwind_protect_cleanup_code(), and octave_oncleanup::~octave_oncleanup().
void unwind_protect::discard_top | ( | int | num | ) | [inline, inherited] |
Definition at line 280 of file unwind-prot.h.
void unwind_protect_safe::gripe_exception | ( | void | ) | [static, private] |
Definition at line 35 of file unwind-prot.cc.
References error().
unwind_protect::operator bool | ( | void | ) | const [inline, inherited] |
Definition at line 248 of file unwind-prot.h.
void unwind_protect::protect_var | ( | T & | var | ) | [inline, inherited] |
Definition at line 236 of file unwind-prot.h.
Referenced by call_mex(), tree_argument_list::convert_to_const_vector(), DEFUN(), DEFUN_DLD(), do_edit_history(), do_keyboard(), octave_dynamic_loader::do_load_mex(), octave_dynamic_loader::do_load_oct(), octave_user_function::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_builtin::do_multi_index_op(), do_run_history(), load_path::do_set(), tree_evaluator::do_unwind_protect_cleanup_code(), error_2(), execute_command_line_file(), execute_eval_option_code(), execute_pkg_add_or_del(), execute_startup_files(), flush_octave_stdout(), generate_struct_completions(), get_debug_input(), interpreter_try(), looks_like_struct(), main_loop(), maybe_missing_function_hook(), octave_scalar_struct::print_raw(), octave_struct::print_raw(), raw_help_from_file(), octave_class::subsasgn_common(), tree_evaluator::visit_do_until_command(), tree_evaluator::visit_try_catch_command(), tree_evaluator::visit_while_command(), warning_1(), and octave_oncleanup::~octave_oncleanup().
void unwind_protect::protect_var | ( | T & | var, | |
const T & | val | |||
) | [inline, inherited] |
Definition at line 243 of file unwind-prot.h.
void unwind_protect::run | ( | void | ) | [inline, inherited] |
Definition at line 286 of file unwind-prot.h.
Referenced by call_mex(), DEFUN_DLD(), tree_evaluator::do_unwind_protect_cleanup_code(), generate_struct_completions(), looks_like_struct(), and read_mat5_binary_element().
void unwind_protect::run_top | ( | int | num | ) | [inline, inherited] |
Definition at line 264 of file unwind-prot.h.
void unwind_protect::run_top | ( | void | ) | [inline, inherited] |
Definition at line 253 of file unwind-prot.h.
Referenced by load_path::do_set(), tree_evaluator::do_unwind_protect_cleanup_code(), and get_debug_input().