TAO  2.3.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
TAO_TSS_Singleton< TYPE, ACE_LOCK > Class Template Reference

TAO-specific Singleton class. More...

#include <TAO_Singleton.h>

Inheritance diagram for TAO_TSS_Singleton< TYPE, ACE_LOCK >:
Inheritance graph
[legend]
Collaboration diagram for TAO_TSS_Singleton< TYPE, ACE_LOCK >:
Collaboration graph
[legend]

Public Member Functions

virtual void cleanup (void *param=0)
 
- Public Member Functions inherited from ACE_Cleanup
 ACE_Cleanup (void)
 
virtual ~ACE_Cleanup (void)
 

Static Public Member Functions

static TYPE * instance (void)
 Global access point to the Singleton. More...
 
static void dump (void)
 Dump the state of the object. More...
 

Protected Member Functions

 TAO_TSS_Singleton (void)
 Default constructor. More...
 
 ACE_TSS_TYPE (TYPE) instance_
 Contained instance. More...
 

Static Protected Member Functions

static TAO_TSS_Singleton< TYPE, ACE_LOCK > *& instance_i (void)
 Get pointer to the TAO TSS Singleton instance. More...
 

Static Protected Attributes

static TAO_TSS_Singleton< TYPE, ACE_LOCK > * singleton_ = 0
 Pointer to the Singleton (ACE_Cleanup) instance. More...
 

Additional Inherited Members

- Private Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled (void)
 

Detailed Description

template<class TYPE, class ACE_LOCK>
class TAO_TSS_Singleton< TYPE, ACE_LOCK >

TAO-specific Singleton class.

TAO_Singletons are used by TAO to register TAO-specific singleton instances with the TAO_Object_Manager. This ensures that TAO singletons are isolated from ACE's Object_Manager, thus allowing TAO to be safely dynamically unloaded.

Constructor & Destructor Documentation

template<class TYPE , class ACE_LOCK >
TAO_TSS_Singleton< TYPE, ACE_LOCK >::TAO_TSS_Singleton ( void  )
protected

Default constructor.

Member Function Documentation

template<class TYPE , class ACE_LOCK >
TAO_TSS_Singleton< TYPE, ACE_LOCK >::ACE_TSS_TYPE ( TYPE  )
protected

Contained instance.

template<class TYPE , class ACE_LOCK >
void TAO_TSS_Singleton< TYPE, ACE_LOCK >::cleanup ( void *  param = 0)
virtual

Cleanup method, used by ace_cleanup_destroyer to destroy the singleton.

Reimplemented from ACE_Cleanup.

template<class TYPE , class ACE_LOCK >
void TAO_TSS_Singleton< TYPE, ACE_LOCK >::dump ( void  )
static

Dump the state of the object.

template<class TYPE , class ACE_LOCK >
TYPE * TAO_TSS_Singleton< TYPE, ACE_LOCK >::instance ( void  )
static

Global access point to the Singleton.

template<class TYPE , class ACE_LOCK >
TAO_TSS_Singleton< TYPE, ACE_LOCK > *& TAO_TSS_Singleton< TYPE, ACE_LOCK >::instance_i ( void  )
staticprotected

Get pointer to the TAO TSS Singleton instance.

Member Data Documentation

template<class TYPE , class ACE_LOCK >
TAO_TSS_Singleton< TYPE, ACE_LOCK > * TAO_TSS_Singleton< TYPE, ACE_LOCK >::singleton_ = 0
staticprotected

Pointer to the Singleton (ACE_Cleanup) instance.


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