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

Provided for convenience. More...

#include <utils/Singleton.h>

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

Public Types

typedef Base::Type Type
 

Static Public Member Functions

static Typeinstance ()
 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 TypemakeInstance ()
 
static void destroyInstance (void)
 

Detailed Description

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

Provided for convenience.

This is equivalent to Singleton<T, singleton::EagerInstantiation, singleton::CreateUsingNew>.

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: