#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 ft_manager::instance_ok(), octave_errno::instance_ok(), fftw_planner::instance_ok(), float_fftw_planner::instance_ok(), rand::instance_ok(), sparse_params::instance_ok(), env::instance_ok(), command_editor::instance_ok(), and 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(), 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().