SingletonWrapperT< T > Class Template Reference

Template class for a singleton wrapper class, which 'wraps' another singleton. More...

List of all members.

Static Public Member Functions

static void DestroyInstance ()
 Destroys the instance wrapped by this singleton.
static T * GetInstance ()
 Singleton accessor.
static bool IsSet ()
 Determine if the singleton has been set or not.
static void SetInstance (AutoPtr< T > in_instance)
 Set the instance of this singleton.
static void SetInstance (T *in_instance)
 Set the instance of this singleton.

Protected Member Functions

 SingletonWrapperT ()
 Constructor. Protected to avoid use except by subclasses.
virtual ~SingletonWrapperT ()
 Destructor. Protected to prohibit use except by subclasses.

Detailed Description

template<typename T>
class Simba::Support::SingletonWrapperT< T >

Template class for a singleton wrapper class, which 'wraps' another singleton.


Constructor & Destructor Documentation

SingletonWrapperT (  )  [inline, protected]

Constructor. Protected to avoid use except by subclasses.

virtual ~SingletonWrapperT (  )  [inline, protected, virtual]

Destructor. Protected to prohibit use except by subclasses.


Member Function Documentation

static void DestroyInstance (  )  [inline, static]

Destroys the instance wrapped by this singleton.

static T* GetInstance (  )  [inline, static]

Singleton accessor.

SetInstance() must be called before GetInstance().

Returns:
The one and only instance of the singleton. (NOT OWN)
static bool IsSet (  )  [inline, static]

Determine if the singleton has been set or not.

Returns:
True if the singleton has been set; false otherwise.
static void SetInstance ( AutoPtr< T >  in_instance  )  [inline, static]

Set the instance of this singleton.

Note that existing instances will be deleted.

Parameters:
in_instance The instance to set for this singleton. (OWN)
static void SetInstance ( T *  in_instance  )  [inline, static]

Set the instance of this singleton.

Note that existing instances will be deleted.

Parameters:
in_instance The instance to set for this singleton. (OWN)

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

Generated on Wed May 17 14:21:19 2017 for SimbaEngine 10.1.3.1011 by simba