GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
singleton_cleanup_list Class Reference

#include "singleton-cleanup.h"

Collaboration diagram for singleton_cleanup_list:

Public Types

typedef void(* fptr) (void)
 

Public Member Functions

 singleton_cleanup_list (const singleton_cleanup_list &)=delete
 
 ~singleton_cleanup_list (void)
 
singleton_cleanup_listoperator= (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< fptrm_fcn_list
 

Static Private Attributes

static singleton_cleanup_lists_instance = nullptr
 

Detailed Description

Definition at line 33 of file singleton-cleanup.h.

Member Typedef Documentation

◆ fptr

typedef void(* singleton_cleanup_list::fptr) (void)

Definition at line 43 of file singleton-cleanup.h.

Constructor & Destructor Documentation

◆ singleton_cleanup_list() [1/2]

singleton_cleanup_list::singleton_cleanup_list ( void  )
inlineprotected

Definition at line 39 of file singleton-cleanup.h.

Referenced by instance_ok().

◆ singleton_cleanup_list() [2/2]

singleton_cleanup_list::singleton_cleanup_list ( const singleton_cleanup_list )
delete

◆ ~singleton_cleanup_list()

singleton_cleanup_list::~singleton_cleanup_list ( void  )

Definition at line 35 of file singleton-cleanup.cc.

References m_fcn_list.

Member Function Documentation

◆ add()

◆ cleanup()

static void singleton_cleanup_list::cleanup ( void  )
inlinestatic

Definition at line 59 of file singleton-cleanup.h.

◆ cleanup_instance()

static void singleton_cleanup_list::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 71 of file singleton-cleanup.h.

◆ do_add()

void singleton_cleanup_list::do_add ( fptr  f)
inlineprivate

Definition at line 79 of file singleton-cleanup.h.

References f.

◆ instance_ok()

bool singleton_cleanup_list::instance_ok ( void  )
staticprivate

Definition at line 44 of file singleton-cleanup.cc.

References singleton_cleanup_list(), and s_instance.

◆ operator=()

singleton_cleanup_list& singleton_cleanup_list::operator= ( const singleton_cleanup_list )
delete

Member Data Documentation

◆ m_fcn_list

std::set<fptr> singleton_cleanup_list::m_fcn_list
private

Definition at line 77 of file singleton-cleanup.h.

Referenced by ~singleton_cleanup_list().

◆ s_instance

singleton_cleanup_list * singleton_cleanup_list::s_instance = nullptr
staticprivate

Definition at line 67 of file singleton-cleanup.h.

Referenced by instance_ok().


The documentation for this class was generated from the following files: