template class EE::System::Singleton

Overview

Template class for only one instance classes. More…

#include <singleton.hpp>

template <typename T>
class Singleton {
public:
    // methods

    static T* createSingleton();
    static T* existsSingleton();
    static T* instance();
    static void destroySingleton();
};

Detailed Documentation

Template class for only one instance classes.

Methods

static T* createSingleton()

Get the singleton pointer

static T* existsSingleton()

Get the singleton pointer (without instance verification)

static T* instance()

Get the singleton pointer

static void destroySingleton()

Destroy the singleton instance