GNU Octave  4.4.1
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< fptrfcn_list

Static Private Attributes

static singleton_cleanup_listinstance = nullptr

Detailed Description

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

Member Typedef Documentation

◆ fptr

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

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

Constructor & Destructor Documentation

◆ singleton_cleanup_list() [1/2]

singleton_cleanup_list::singleton_cleanup_list ( void  )

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

Referenced by instance_ok().

◆ singleton_cleanup_list() [2/2]

singleton_cleanup_list::singleton_cleanup_list ( const singleton_cleanup_list )

◆ ~singleton_cleanup_list()

singleton_cleanup_list::~singleton_cleanup_list ( void  )

Definition at line 32 of file

References fcn, and fcn_list.

Member Function Documentation

◆ add()

◆ cleanup()

static void singleton_cleanup_list::cleanup ( void  )

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

◆ cleanup_instance()

static void singleton_cleanup_list::cleanup_instance ( void  )

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

◆ do_add()

void singleton_cleanup_list::do_add ( fptr  f)

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

References f.

◆ instance_ok()

bool singleton_cleanup_list::instance_ok ( void  )

Definition at line 41 of file

References instance, retval, and singleton_cleanup_list().

◆ operator=()

singleton_cleanup_list& singleton_cleanup_list::operator= ( const singleton_cleanup_list )

Member Data Documentation

◆ fcn_list

std::set<fptr> singleton_cleanup_list::fcn_list

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

Referenced by ~singleton_cleanup_list().

◆ instance

singleton_cleanup_list * singleton_cleanup_list::instance = nullptr

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

Referenced by instance_ok().

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