| Fling Engine 0.00.1 Fling Engine is a game engine written in Vulkan

Public Member Functions | Static Public Member Functions | Protected Member Functions
Fling::Singleton< T > Class Template Reference

Class that can have only one instance. More...

`#include <Singleton.hpp>`

## Public Member Functions
virtual FLING_API void | Init ()
virtual FLING_API void | Shutdown ()

## Static Public Member Functions
static T & | Get ()

## Protected Member Functions
| Singleton ()=default
| Every singleton must have a default constructor so that explicit creation and destruction of them is maintained. More...

## Detailed Description

### template<class T>
class Fling::Singleton< T >

Class that can have only one instance.

## Constructor & Destructor Documentation

## ◆ Singleton()

template<class T>

Fling::Singleton< T >::Singleton | ( |  | ) |
| explicit protected default

Every singleton must have a default constructor so that explicit creation and destruction of them is maintained.

Use Init and Shutdown to handle initializing of singletons.

## Member Function Documentation

## ◆ Get()

template<typename T >

T & Fling::Singleton< T >::Get | ( |  | ) |
| static

## ◆ Init()

template<class T>

virtual FLING_API void Fling::Singleton< T >::Init | ( |  | ) |
| inline virtual

Reimplemented in Fling::ResourceManager, Fling::Logger, Fling::FlingConfig, and Fling::Timing.

## ◆ Shutdown()

template<class T>

virtual FLING_API void Fling::Singleton< T >::Shutdown | ( |  | ) |
| inline virtual

Reimplemented in Fling::ResourceManager, and Fling::FlingConfig.

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

- FlingEngine/Utils/inc/Singleton.hpp