XACC
|
#include <Singleton.hpp>
Static Public Member Functions | |
static T * | instance () |
static void | destroy () |
Protected Member Functions | |
Singleton () | |
virtual | ~Singleton () |
Static Protected Attributes | |
static T * | instance_ = nullptr |
Singleton provides a templated implementation of the Singleton Design Pattern. This class takes a template parameter and provides behviour around that template that models a singleton - ie there is only one instance available during runtime.
|
inlineexplicitprotected |
constructor
|
inlineprotectedvirtual |
destructor
|
inlinestatic |
Destroy the single instance of T
|
inlinestatic |
Return the single instance of T
|
staticprotected |
Reference to the single T instance