GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
singleton_cleanup_list Class Reference

#include "singleton-cleanup.h"

Collaboration diagram for singleton_cleanup_list:
Collaboration graph
[legend]

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_listoperator= (const singleton_cleanup_list &)
 

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 = 0
 

Detailed Description

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

singleton_cleanup_list::singleton_cleanup_list ( void  )
inlineprotected

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

Member Function Documentation

static void singleton_cleanup_list::add ( fptr  f)
inlinestatic
static void singleton_cleanup_list::cleanup ( void  )
inlinestatic

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

static void singleton_cleanup_list::cleanup_instance ( void  )
inlinestaticprivate

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

void singleton_cleanup_list::do_add ( fptr  f)
inlineprivate

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

bool singleton_cleanup_list::instance_ok ( void  )
staticprivate
singleton_cleanup_list& singleton_cleanup_list::operator= ( const singleton_cleanup_list )
private

Member Data Documentation

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
staticprivate

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

Referenced by instance_ok().


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