Protium
Math and Design Features
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
DeletionPolicies.cxx
Go to the documentation of this file.
1
#include "
Protium/Singleton/DeletionPolicies.h
"
2
3
4
#include <assert.h>
5
7
void
Protium::Singleton::AtExitFn
(){
8
9
assert( !TrackerList.empty());
10
11
// Pick the element at the top of the stack
12
DeletionTracker
* pTop = TrackerList.back();
13
14
// Remove that object off the stack _before_ deleting pTop
15
TrackerList.pop_back();
16
17
// Destroy the element
18
delete
pTop;
19
}
Protium::Singleton::DeletionTracker
Abstract class to hold priority for deletion.
Definition:
DeletionPolicies.h:41
Protium::Singleton::AtExitFn
void AtExitFn()
Gets added to the std::atexit queue every time a singleton get created. Called once for every singlet...
Definition:
DeletionPolicies.cxx:7
DeletionPolicies.h
Source
kjw_software
Protium
Singleton
DeletionPolicies.cxx
Generated on Thu Oct 9 2014 07:12:43 for Protium by
1.8.6