Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
DeletionPolicies.h File Reference
#include <list>
#include <vector>
#include <algorithm>
#include <stdexcept>
Include dependency graph for DeletionPolicies.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Protium::Singleton::Adapter< T >
 Deletion Adapter class. More...
 
class  Protium::Singleton::DeleteComposite::Composite< Host >
 
class  Protium::Singleton::ConcreteDeletionTracker< Host, Destroyer >
 
class  Protium::Singleton::DeleteComposite
 
struct  Protium::Singleton::DeleteFirst< Host >
 
struct  Protium::Singleton::DeleteLast< Host >
 
struct  Protium::Singleton::DeleteNever< Host >
 
struct  Protium::Singleton::DeleteNextToLast< Host >
 
struct  Protium::Singleton::DeleteOnce< Host >
 
struct  Protium::Singleton::Deleter< T >
 
class  Protium::Singleton::DeleteRandom< Host >
 
class  Protium::Singleton::DeleteTwice< Host >
 
class  Protium::Singleton::DeleteWithFixedPriority< priority, Host >
 
class  Protium::Singleton::DeleteWithPriority< Host >
 
class  Protium::Singleton::DeletionTracker
 Abstract class to hold priority for deletion. More...
 
struct  Protium::Singleton::DeleteComposite::DestroyAfter< DestructionPolicy >
 
struct  Protium::Singleton::DeleteComposite::DestroyWith< DestructionPolicy >
 
struct  Protium::Singleton::DeleteComposite::DestroyWith< DestructionPolicy >::DestroyWithHeader< Host >
 
struct  Protium::Singleton::DeleteComposite::DestroyAfter< DestructionPolicy >::IsDestroyed< Host >
 

Namespaces

 Protium
 Encapsulates all Protium Modules.
 
 Protium::Singleton
 

Typedefs

typedef void(* Protium::Singleton::exit_function_pointer_type )()
 Defines the type of functions to be called at exit. More...
 

Functions

void Protium::Singleton::AtExitFn ()
 Gets added to the std::atexit queue every time a singleton get created. Called once for every singleton at end of execution. Deletes singletons in order. More...
 
template<typename Host , typename Destroyer >
void Protium::Singleton::SetPriority (Host *pDynObject, unsigned int priority, Destroyer d)
 Helper function for putting an object into the deletion queue. More...
 
template<typename Host >
void Protium::Singleton::SetPriority (Host *pDynObject, unsigned int priority, typename Deleter< Host >::Type d=Deleter< Host >::Delete)
 Helper function for setting singleton deletion priority. More...