STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::singleton< INSTANCE, destroy_on_exit > Class Template Reference

Detailed Description

template<typename INSTANCE, bool destroy_on_exit = true>
class stxxl::singleton< INSTANCE, destroy_on_exit >

Definition at line 27 of file singleton.h.

+ Inheritance diagram for stxxl::singleton< INSTANCE, destroy_on_exit >:
+ Collaboration diagram for stxxl::singleton< INSTANCE, destroy_on_exit >:

Static Public Member Functions

static instance_pointer get_instance ()
 

Private Types

typedef instance_typeinstance_pointer
 
typedef INSTANCE instance_type
 
typedef volatile instance_pointer volatile_instance_pointer
 

Static Private Member Functions

static instance_pointer create_instance ()
 
static void destroy_instance ()
 

Static Private Attributes

static volatile_instance_pointer instance = NULL
 

Additional Inherited Members

- Private Member Functions inherited from stxxl::noncopyable
 noncopyable ()
 

Member Typedef Documentation

template<typename INSTANCE, bool destroy_on_exit = true>
typedef instance_type* stxxl::singleton< INSTANCE, destroy_on_exit >::instance_pointer
private

Definition at line 30 of file singleton.h.

template<typename INSTANCE, bool destroy_on_exit = true>
typedef INSTANCE stxxl::singleton< INSTANCE, destroy_on_exit >::instance_type
private

Definition at line 29 of file singleton.h.

template<typename INSTANCE, bool destroy_on_exit = true>
typedef volatile instance_pointer stxxl::singleton< INSTANCE, destroy_on_exit >::volatile_instance_pointer
private

Definition at line 31 of file singleton.h.

Member Function Documentation

template<typename INSTANCE , bool destroy_on_exit>
singleton< INSTANCE, destroy_on_exit >::instance_pointer stxxl::singleton< INSTANCE, destroy_on_exit >::create_instance ( )
staticprivate

Definition at line 50 of file singleton.h.

References stxxl::register_exit_handler().

template<typename INSTANCE , bool destroy_on_exit>
void stxxl::singleton< INSTANCE, destroy_on_exit >::destroy_instance ( )
staticprivate

Definition at line 63 of file singleton.h.

template<typename INSTANCE, bool destroy_on_exit = true>
static instance_pointer stxxl::singleton< INSTANCE, destroy_on_exit >::get_instance ( )
inlinestatic

Definition at line 39 of file singleton.h.

Member Data Documentation

template<typename INSTANCE, bool destroy_on_exit = true>
singleton< INSTANCE, destroy_on_exit >::volatile_instance_pointer stxxl::singleton< INSTANCE, destroy_on_exit >::instance = NULL
staticprivate

Definition at line 33 of file singleton.h.


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