#include "singleton-cleanup.h"
Public Types | |
typedef void(* | fptr) (void) |
Public Member Functions | |
singleton_cleanup_list (const singleton_cleanup_list &)=delete | |
~singleton_cleanup_list (void) | |
singleton_cleanup_list & | operator= (const singleton_cleanup_list &)=delete |
Static Public Member Functions | |
static void | add (fptr f) |
static void | cleanup (void) |
Protected Member Functions | |
singleton_cleanup_list (void) | |
Private Member Functions | |
void | do_add (fptr f) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
std::set< fptr > | m_fcn_list |
Static Private Attributes | |
static singleton_cleanup_list * | s_instance = nullptr |
Definition at line 33 of file singleton-cleanup.h.
typedef void(* singleton_cleanup_list::fptr) (void) |
Definition at line 43 of file singleton-cleanup.h.
|
inlineprotected |
Definition at line 39 of file singleton-cleanup.h.
Referenced by instance_ok().
|
delete |
singleton_cleanup_list::~singleton_cleanup_list | ( | void | ) |
Definition at line 35 of file singleton-cleanup.cc.
References m_fcn_list.
|
inlinestatic |
Definition at line 53 of file singleton-cleanup.h.
References f.
Referenced by octave::ft_manager::instance_ok(), octave_errno::instance_ok(), octave::fftw_planner::instance_ok(), octave::float_fftw_planner::instance_ok(), octave::rand::instance_ok(), octave_sparse_params::instance_ok(), octave::sys::env::instance_ok(), octave::command_editor::instance_ok(), and octave::command_history::instance_ok().
|
inlinestatic |
Definition at line 59 of file singleton-cleanup.h.
|
inlinestaticprivate |
Definition at line 71 of file singleton-cleanup.h.
|
inlineprivate |
Definition at line 79 of file singleton-cleanup.h.
References f.
|
staticprivate |
Definition at line 44 of file singleton-cleanup.cc.
References singleton_cleanup_list(), retval, and s_instance.
|
delete |
|
private |
Definition at line 77 of file singleton-cleanup.h.
Referenced by ~singleton_cleanup_list().
|
staticprivate |
Definition at line 67 of file singleton-cleanup.h.
Referenced by instance_ok().