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

Provided for convenience. More...

#include <utils/Singleton.h>

Inheritance diagram for ExplicitSingleton< 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...
 

Detailed Description

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

Provided for convenience.

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

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.


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