#include "singleton-cleanup.h"
Public Types | |
typedef void(* | fptr )(void) |
Public Member Functions | |
~singleton_cleanup_list (void) | |
Static Public Member Functions | |
static void | add (fptr f) |
static void | cleanup (void) |
Protected Member Functions | |
singleton_cleanup_list (void) | |
Private Member Functions | |
singleton_cleanup_list (const singleton_cleanup_list &) | |
void | do_add (fptr f) |
singleton_cleanup_list & | operator= (const singleton_cleanup_list &) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
std::set< fptr > | fcn_list |
Static Private Attributes | |
static singleton_cleanup_list * | instance = 0 |
Definition at line 6 of file singleton-cleanup.h.
typedef void(* singleton_cleanup_list::fptr)(void) |
Definition at line 16 of file singleton-cleanup.h.
singleton_cleanup_list::singleton_cleanup_list | ( | void | ) | [inline, protected] |
Definition at line 12 of file singleton-cleanup.h.
Referenced by instance_ok().
singleton_cleanup_list::~singleton_cleanup_list | ( | void | ) |
Definition at line 32 of file singleton-cleanup.cc.
References fcn_list.
singleton_cleanup_list::singleton_cleanup_list | ( | const singleton_cleanup_list & | ) | [private] |
static void singleton_cleanup_list::add | ( | fptr | f | ) | [inline, static] |
Definition at line 20 of file singleton-cleanup.h.
Referenced by octave_call_stack::create_instance(), symbol_table::scope_id_cache::create_instance(), octave_child_list::instance_ok(), octave_diary_stream::instance_ok(), octave_pager_stream::instance_ok(), octave_value_typeinfo::instance_ok(), octave_stream_list::instance_ok(), load_path::instance_ok(), octave_dynamic_loader::instance_ok(), octave_mex_file_list::instance_ok(), octave_shlib_list::instance_ok(), display_info::instance_ok(), bp_table::instance_ok(), octave_comment_buffer::instance_ok(), octave_sparse_params::instance_ok(), octave_rand::instance_ok(), octave_env::instance_ok(), oct_mach_info::instance_ok(), file_ops::instance_ok(), and command_editor::instance_ok().
static void singleton_cleanup_list::cleanup | ( | void | ) | [inline, static] |
Definition at line 26 of file singleton-cleanup.h.
static void singleton_cleanup_list::cleanup_instance | ( | void | ) | [inline, static, private] |
Definition at line 34 of file singleton-cleanup.h.
void singleton_cleanup_list::do_add | ( | fptr | f | ) | [inline, private] |
Definition at line 38 of file singleton-cleanup.h.
bool singleton_cleanup_list::instance_ok | ( | void | ) | [static, private] |
Definition at line 44 of file singleton-cleanup.cc.
References current_liboctave_error_handler, instance, and singleton_cleanup_list().
singleton_cleanup_list& singleton_cleanup_list::operator= | ( | const singleton_cleanup_list & | ) | [private] |
std::set<fptr> singleton_cleanup_list::fcn_list [private] |
Definition at line 36 of file singleton-cleanup.h.
Referenced by ~singleton_cleanup_list().
singleton_cleanup_list * singleton_cleanup_list::instance = 0 [static, private] |
Definition at line 30 of file singleton-cleanup.h.
Referenced by instance_ok().