MIRA
Public Types | Static Public Member Functions | Static Protected Member Functions | List of all members
LazySingletonNoLock< T > Class Template Reference

Provided for convenience. More...

#include <utils/Singleton.h>

Inheritance diagram for LazySingletonNoLock< T >:
Inheritance graph
[legend]

Public Types

typedef Base::Type Type
 

Static Public Member Functions

static Type & instance ()
 Returns a reference to the singleton instance. More...
 
static bool isDestroyed ()
 Returns true, if the singleton was already destroyed. More...
 

Static Protected Member Functions

static Type * makeInstance ()
 
static void destroyInstance (void)
 

Detailed Description

template<typename T>
class mira::LazySingletonNoLock< T >

Provided for convenience.

Same as LazySingleton but without thread safe instantiation. This is equivalent to Singleton<T, singleton::LazyInstantiation, ..., singleton::NoLock>.

Member Typedef Documentation

◆ Type

typedef Base::Type Type
inherited

Member Function Documentation

◆ instance()

static Type& instance ( )
inlinestaticinherited

Returns a reference to the singleton instance.

Exceptions
XSingletonIf the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation).

◆ isDestroyed()

static bool isDestroyed ( )
inlinestaticinherited

Returns true, if the singleton was already destroyed.

Trying to access it will result in an exception.

◆ makeInstance()

static Type* makeInstance ( )
inlinestaticprotectedinherited

◆ destroyInstance()

static void destroyInstance ( void  )
inlinestaticprotectedinherited

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